aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2024-03-18 16:04:06 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-03-18 16:04:06 +0000
commita8b8cd7be9ddb06a90cc30dadfc9f6100e614201 (patch)
tree0f2c1699dbfae0d1297e14aa247bf04e7eeefc7c
parent5067ef29d4f4e5a7f589dc5c4c362621c2523da0 (diff)
parent7b95053aa0480a05bc98de2d97d18dfd43e16f01 (diff)
downloadbionic-ndk-r27-release.tar.gz
Merge "Remove workaround for a fixed bug." into mainndk-r27-release
-rw-r--r--tests/cfi_test.cpp2
-rw-r--r--tests/dl_test.cpp8
-rw-r--r--tests/dlext_test.cpp1
-rw-r--r--tests/elftls_dl_test.cpp2
-rw-r--r--tests/heap_tagging_level_test.cpp1
-rw-r--r--tests/memtag_stack_test.cpp1
-rw-r--r--tests/sys_thread_properties_test.cpp5
7 files changed, 0 insertions, 20 deletions
diff --git a/tests/cfi_test.cpp b/tests/cfi_test.cpp
index 5324c68e6..79a9e35eb 100644
--- a/tests/cfi_test.cpp
+++ b/tests/cfi_test.cpp
@@ -161,7 +161,6 @@ TEST(cfi_test, invalid) {
TEST(cfi_test, early_init) {
#if defined(__BIONIC__)
std::string helper = GetTestLibRoot() + "/cfi_test_helper";
- chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr);
@@ -173,7 +172,6 @@ TEST(cfi_test, early_init) {
TEST(cfi_test, early_init2) {
#if defined(__BIONIC__)
std::string helper = GetTestLibRoot() + "/cfi_test_helper2";
- chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr);
diff --git a/tests/dl_test.cpp b/tests/dl_test.cpp
index 434eee5b0..e986af232 100644
--- a/tests/dl_test.cpp
+++ b/tests/dl_test.cpp
@@ -162,7 +162,6 @@ TEST(dl, preinit_system_calls) {
#if defined(__BIONIC__)
SKIP_WITH_HWASAN << "hwasan not initialized in preinit_array, b/124007027";
std::string helper = GetTestLibRoot() + "/preinit_syscall_test_helper";
- chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr);
@@ -173,7 +172,6 @@ TEST(dl, preinit_getauxval) {
#if defined(__BIONIC__)
SKIP_WITH_HWASAN << "hwasan not initialized in preinit_array, b/124007027";
std::string helper = GetTestLibRoot() + "/preinit_getauxval_test_helper";
- chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr);
@@ -187,7 +185,6 @@ TEST(dl, preinit_getauxval) {
TEST(dl, exec_without_ld_preload) {
#if defined(__BIONIC__)
std::string helper = GetTestLibRoot() + "/ld_preload_test_helper";
- chmod(helper.c_str(), 0755);
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, "12345");
@@ -198,7 +195,6 @@ TEST(dl, exec_with_ld_preload) {
#if defined(__BIONIC__)
std::string helper = GetTestLibRoot() + "/ld_preload_test_helper";
std::string env = std::string("LD_PRELOAD=") + GetTestLibRoot() + "/ld_preload_test_helper_lib2.so";
- chmod(helper.c_str(), 0755);
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.SetEnv({ env.c_str(), nullptr });
@@ -226,7 +222,6 @@ TEST(dl, exec_without_ld_config_file) {
"/ld_config_test_helper\": library \"ld_config_test_helper_lib1.so\" "
"not found: needed by main executable\n";
std::string helper = GetTestLibRoot() + "/ld_config_test_helper";
- chmod(helper.c_str(), 0755);
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, EXIT_FAILURE, error_message.c_str());
@@ -283,7 +278,6 @@ TEST(dl, exec_with_ld_config_file) {
TemporaryFile config_file;
create_ld_config_file(config_file.path);
std::string env = std::string("LD_CONFIG_FILE=") + config_file.path;
- chmod(helper.c_str(), 0755);
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.SetEnv({ env.c_str(), nullptr });
@@ -320,7 +314,6 @@ TEST(dl, exec_with_ld_config_file_with_ld_preload) {
create_ld_config_file(config_file.path);
std::string env = std::string("LD_CONFIG_FILE=") + config_file.path;
std::string env2 = std::string("LD_PRELOAD=") + GetTestLibRoot() + "/ld_config_test_helper_lib3.so";
- chmod(helper.c_str(), 0755);
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.SetEnv({ env.c_str(), env2.c_str(), nullptr });
@@ -360,7 +353,6 @@ TEST(dl, disable_ld_config_file) {
TemporaryFile config_file;
create_ld_config_file(config_file.path);
std::string env = std::string("LD_CONFIG_FILE=") + config_file.path;
- chmod(helper.c_str(), 0755);
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.SetEnv({ env.c_str(), nullptr });
diff --git a/tests/dlext_test.cpp b/tests/dlext_test.cpp
index d55e5b495..570da2a75 100644
--- a/tests/dlext_test.cpp
+++ b/tests/dlext_test.cpp
@@ -2084,7 +2084,6 @@ TEST(dlext, ns_hidden_child) {
ExecTestHelper eth;
std::string helper = GetTestLibRoot() + "/ns_hidden_child_helper";
- chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607
std::string app_ns_dir = GetTestLibRoot() + "/ns_hidden_child_app";
eth.SetArgs({ helper.c_str(), app_ns_dir.c_str(), nullptr });
diff --git a/tests/elftls_dl_test.cpp b/tests/elftls_dl_test.cpp
index e160958f1..e759e1565 100644
--- a/tests/elftls_dl_test.cpp
+++ b/tests/elftls_dl_test.cpp
@@ -80,7 +80,6 @@ TEST(elftls_dl, dlopen_ie_error) {
std::string error = "success\n";
#endif
- chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607
ExecTestHelper eth;
eth.SetArgs({ helper.c_str(), nullptr });
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, error.c_str());
@@ -155,7 +154,6 @@ TEST(elftls_dl, tlsdesc_missing_weak) {
TEST(elftls_dl, dtv_resize) {
#if defined(__BIONIC__)
std::string helper = GetTestLibRoot() + "/elftls_dtv_resize_helper";
- chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607
ExecTestHelper eth;
eth.SetArgs({helper.c_str(), nullptr});
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr);
diff --git a/tests/heap_tagging_level_test.cpp b/tests/heap_tagging_level_test.cpp
index dd8eea3f6..c0aa176fe 100644
--- a/tests/heap_tagging_level_test.cpp
+++ b/tests/heap_tagging_level_test.cpp
@@ -248,7 +248,6 @@ TEST_P(MemtagNoteTest, SEGV) {
std::string helper_base = std::string("heap_tagging_") + (isStatic ? "static_" : "") +
kNoteSuffix[static_cast<int>(note)] + "_helper";
std::string helper = GetTestLibRoot() + "/" + helper_base;
- chmod(helper.c_str(), 0755);
ExecTestHelper eth;
eth.SetArgs({helper.c_str(), nullptr});
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0,
diff --git a/tests/memtag_stack_test.cpp b/tests/memtag_stack_test.cpp
index 163fc112e..9d0283010 100644
--- a/tests/memtag_stack_test.cpp
+++ b/tests/memtag_stack_test.cpp
@@ -35,7 +35,6 @@ TEST_P(MemtagStackTest, test) {
std::string helper =
GetTestLibRoot() + (is_static ? "/stack_tagging_static_helper" : "/stack_tagging_helper");
const char* arg = std::get<0>(GetParam());
- chmod(helper.c_str(), 0755);
ExecTestHelper eth;
eth.SetArgs({helper.c_str(), arg, nullptr});
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, "");
diff --git a/tests/sys_thread_properties_test.cpp b/tests/sys_thread_properties_test.cpp
index cf1a6ba63..816be41ee 100644
--- a/tests/sys_thread_properties_test.cpp
+++ b/tests/sys_thread_properties_test.cpp
@@ -24,8 +24,6 @@ TEST(thread_properties_test, iterate_dts) {
const char expected_out[] =
"got test_static_tls_bounds\niterate_cb i = 0\ndone_iterate_dynamic_tls\n";
std::string helper = GetTestLibRoot() + "tls_properties_helper/tls_properties_helper";
- chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607
-
ExecTestHelper eth;
eth.SetArgs({helper.c_str(), nullptr});
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, expected_out);
@@ -37,11 +35,8 @@ TEST(thread_properties_test, thread_exit_cb) {
// tests/libs/thread_exit_cb_helper.cpp
const char expected_out[] = "exit_cb_1 called exit_cb_2 called exit_cb_3 called";
std::string helper = GetTestLibRoot() + "thread_exit_cb_helper/thread_exit_cb_helper";
- chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607
-
ExecTestHelper eth;
eth.SetArgs({helper.c_str(), nullptr});
eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, expected_out);
-
#endif
}