From 2bce1e5f02ee95174cd640ceb16659df87716800 Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Sat, 23 Dec 2023 14:37:36 +0100 Subject: [PATCH] Fix test failure on 32bit platform --- test/testother.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/testother.cpp b/test/testother.cpp index d221570159c..93f2a5e48a8 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -2173,6 +2173,7 @@ class TestOther : public TestFixture { "}\n"); ASSERT_EQUALS("[test.cpp:1]: (performance) Function parameter 't' should be passed by const reference.\n", errout.str()); + Settings settings0 = settingsBuilder(_settings).platform(Platform::Type::Unix64).build(); check("struct S {\n" // #12138 " union {\n" " int a = 0;\n" @@ -2189,7 +2190,7 @@ class TestOther : public TestFixture { "};\n" "void f(S s) {\n" " if (s.x > s.y) {}\n" - "}\n"); + "}\n", /*filename*/ nullptr, /*inconclusive*/ true, /*runSimpleChecks*/ true, /*verbose*/ false, &settings0); ASSERT_EQUALS("", errout.str()); check("struct S { std::list l; };\n" // #12147