From 7e41baa1bf0d4b58172cc501e73c12bc569017e8 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 30 Jun 2026 14:37:51 +0100 Subject: [PATCH] Add 'strace' sub command for generated test reproduction scripts --- run-tests.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run-tests.php b/run-tests.php index f5c7be8b4f45..231d7f2b6445 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2769,6 +2769,9 @@ function run_test(string $php, $file, array $env): string "valgrind") USE_ZEND_ALLOC=0 valgrind $2 {$orig_cmd} ;; +"strace") + strace -o /tmp/strace -tt -ff $2 {$orig_cmd} + ;; "rr") rr record $2 {$orig_cmd} ;;