[llvm-branch-commits] [ASan] Make duplicate_os_log_reports.cpp work with the internal shell (PR #168656)
Andrew Haberlandt via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 19 08:56:02 PST 2025
================
@@ -1,20 +1,16 @@
// UNSUPPORTED: ios
// REQUIRES: darwin_log_cmd
// RUN: %clangxx_asan -fsanitize-recover=address %s -o %t
-// RUN: { %env_asan_opts=halt_on_error=0,log_to_syslog=1 %run %t > %t.process_output.txt 2>&1 & } \
-// RUN: ; export TEST_PID=$! ; wait ${TEST_PID}
+// RUN: bash -c "{ %env_asan_opts=halt_on_error=0,log_to_syslog=1 %run %t > %t.process_output.txt 2>&1 & } \
+// RUN: ; export TEST_PID=$! ; wait ${TEST_PID}; echo -n ${TEST_PID} > %t.test_pid"
----------------
ndrewh wrote:
If you clear out the temp file, it'll fail iirc
https://github.com/llvm/llvm-project/pull/168656
More information about the llvm-branch-commits
mailing list