summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2018-04-03 20:03:12 -0700
committerRyan Prichard <rprichard@google.com>2018-04-04 16:10:37 -0700
commit0044cd188e738c863da4e9cb44687623436890d7 (patch)
tree7ff6ac6762fe1b86deb1a9c071ba579234f7b8a2 /libc/malloc_hooks/malloc_hooks.cpp
parent8b70a0266d42297e9b38e6209588eb3621843e95 (diff)
Fix race in ld.config.txt tests
The tests can run in parallel, and if they do, one test can truncate ld.config.txt while another test is reading it (via the loader). Fix the issue by using a TemporaryFile as the LD_CONFIG_FILE. Test: adb shell /data/nativetest64/bionic-unit-tests/bionic-unit-tests --gtest_filter=dl.exec_with_ld_config_file:dl.exec_with_ld_config_file_with_ld_preload:dl.disable_ld_config_file --gtest_repeat=1000 Bug: b/77555708 Change-Id: I9763caa076ece30d1a0eb9c8892a310ac51543b6 (cherry picked from commit 6c3f97d2360ba1a2b2be160003fa3b4dd7b33ae1)
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions