aboutsummaryrefslogtreecommitdiff
path: root/tests/dl_test.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2018-11-07 14:39:43 -0800
committerChristopher Ferris <cferris@google.com>2018-11-07 14:39:43 -0800
commit01db9bde05ebec27813392d3642c1a784f0be9ab (patch)
treeb1a81579b5b69b4a5a54e2558d590f127db9482b /tests/dl_test.cpp
parent0c39bd468d3aa19b3e27937b36b101cc4aa65dab (diff)
downloadbionic-01db9bde05ebec27813392d3642c1a784f0be9ab.tar.gz
Add a force fail for non-bionic xfail test.
Test: xfail test passes on host. Change-Id: I6c4ddd3f3dc5541b126d9dd31b1fcff9d34819e6
Diffstat (limited to 'tests/dl_test.cpp')
-rw-r--r--tests/dl_test.cpp3
1 files changed, 3 insertions, 0 deletions
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
}