diff --git a/tests/dl_test.cpp b/tests/dl_test.cpp index 3f102ec29..c1681ea9f 100644 --- a/tests/dl_test.cpp +++ b/tests/dl_test.cpp @@ -154,6 +154,9 @@ TEST(dl, xfail_preinit_getauxval) { ExecTestHelper eth; eth.SetArgs({ helper.c_str(), nullptr }); eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); +#else + // Force a failure when not compiled for bionic so the test is considered a pass. + ASSERT_TRUE(false); #endif }