From f53e8d314d139ab6c60490e31ea3281c305cbb45 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Wed, 23 Oct 2024 14:46:30 +0000 Subject: [PATCH] Bug 1926089 - Disable an fmt test on Linux debug x86. Differential Revision: https://phabricator.services.mozilla.com/D226482 --- mozglue/tests/gtest/TestFmt.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozglue/tests/gtest/TestFmt.cpp b/mozglue/tests/gtest/TestFmt.cpp index c86f49a97b20..6deae10925bc 100644 --- a/mozglue/tests/gtest/TestFmt.cpp +++ b/mozglue/tests/gtest/TestFmt.cpp @@ -208,7 +208,10 @@ TEST(Fmt, IOError) { FILE* duped = fdopen(dup(fileno(stderr)), "w"); fclose(duped); + // glibc will crash here on x86 Linux debug +# if defined(DEBUG) && defined(XP_LINUX) && !defined(__i386__) fmt::println(duped, FMT_STRING("Hi {}"), 14); +# endif } # endif #endif