From 01db9bde05ebec27813392d3642c1a784f0be9ab Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Wed, 7 Nov 2018 14:39:43 -0800 Subject: [PATCH] Add a force fail for non-bionic xfail test. Test: xfail test passes on host. Change-Id: I6c4ddd3f3dc5541b126d9dd31b1fcff9d34819e6 --- tests/dl_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/dl_test.cpp b/tests/dl_test.cpp index cb98caede..e7cf0d659 100644 --- a/tests/dl_test.cpp +++ b/tests/dl_test.cpp @@ -153,6 +153,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 }