diff options
author | Christopher Ferris <cferris@google.com> | 2018-11-07 14:39:43 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2018-11-07 14:39:43 -0800 |
commit | 01db9bde05ebec27813392d3642c1a784f0be9ab (patch) | |
tree | b1a81579b5b69b4a5a54e2558d590f127db9482b /tests/dl_test.cpp | |
parent | 0c39bd468d3aa19b3e27937b36b101cc4aa65dab (diff) | |
download | bionic-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.cpp | 3 |
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 } |