Skip to content

Commit 02a0a20

Browse files
committed
fixing one more expressions of the "bad case" test
1 parent 7c25387 commit 02a0a20

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/src/bad/LambdaFunctionWithCapturesBadCase_test.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,14 @@ TEST_CASE("Reload of lambda function with captured data and another lambda in th
1919
std::cout << "JET_TEST: disable(lamb_capt_bad:1); enable(lamb_capt_bad:2)" << std::endl;
2020
waitForReload();
2121

22+
// Acts different on different platforms, compilers etc., unreliable in general
23+
#if defined(__APPLE__) && defined(__aarch64__)
2224
REQUIRE_FALSE(lambda(v1, v2) == mul); // note REQUIRE_FALSE
25+
#else
26+
# if defined(__clang__)
27+
REQUIRE(lambda(v1, v2) == mul); // note REQUIRE
28+
# else
29+
REQUIRE_FALSE(lambda(v1, v2) == mul); // note REQUIRE_FALSE
30+
#endif
31+
#endif
2332
}

0 commit comments

Comments
 (0)