diff options
author | Ryan Prichard <rprichard@google.com> | 2018-04-03 20:03:12 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2018-04-03 21:57:16 -0700 |
commit | 6c3f97d2360ba1a2b2be160003fa3b4dd7b33ae1 (patch) | |
tree | 70dd4ce56c9d4aca8a749be38de408b908a33547 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 68ce672b5f69a174ec3437bf3906241336b83c3c (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
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions