aboutsummaryrefslogtreecommitdiff
path: root/tests/dl_test.cpp
diff options
context:
space:
mode:
authordimitry <dimitry@google.com>2017-09-29 11:52:17 +0200
committerdimitry <dimitry@google.com>2017-09-29 19:48:46 +0200
commit04f7a798cff26c1809138d329e0a5717efc2b3c5 (patch)
tree314d022f48abb92d9fd690b07c205c15b791ab7a /tests/dl_test.cpp
parentbd2754177fc26b255b64af0b50c32f984a274cf9 (diff)
downloadbionic-04f7a798cff26c1809138d329e0a5717efc2b3c5.tar.gz
Replace abort with exit(1) in __linker_cannot_link
Bug: http://b/67038409 Test: bionic-unit-tests Change-Id: I7d39b44f2da8c5111ac8a9faf3416f19d5a35c05
Diffstat (limited to 'tests/dl_test.cpp')
-rw-r--r--tests/dl_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dl_test.cpp b/tests/dl_test.cpp
index aaf2c3742..ceb0b4d67 100644
--- a/tests/dl_test.cpp
+++ b/tests/dl_test.cpp
@@ -162,7 +162,7 @@ TEST(dl, exec_without_ld_config_file) {
chmod(helper.c_str(), 0755);
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
- eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, -6, error_message.c_str());
+ eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, EXIT_FAILURE, error_message.c_str());
#endif
}