From f8263f285f492bb03ea5d586df2b922e48aad412 Mon Sep 17 00:00:00 2001 From: Andrew Haberlandt Date: Fri, 14 Nov 2025 14:24:35 -0800 Subject: [PATCH 1/2] [compiler-rt] Fix merge-posix.test file size test --- compiler-rt/test/fuzzer/merge-posix.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/fuzzer/merge-posix.test b/compiler-rt/test/fuzzer/merge-posix.test index 2721668fb9706..edd91324e5a92 100644 --- a/compiler-rt/test/fuzzer/merge-posix.test +++ b/compiler-rt/test/fuzzer/merge-posix.test @@ -14,7 +14,7 @@ RUN: echo ....U. > %tmp/T2/2 RUN: echo ...Z.. > %tmp/T2/3 RUN: echo ...Z.. > %tmp/T2/4 RUN: echo ....E. > %tmp/T2/5 -RUN: echo .....R > %tmp/T2/6 +RUN: (echo .....R; for i in {1..1024}; do echo -n X; done) > %tmp/T2/6 # Check that we can report an error if file size exceeded RUN: (ulimit -f 1; not %run %t-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=SIGXFSZ) From 52c654e8c374e4633086d2449b58628d0b27c54e Mon Sep 17 00:00:00 2001 From: Andrew Haberlandt Date: Mon, 17 Nov 2025 09:01:40 -0800 Subject: [PATCH 2/2] Switch to %python for writing test file --- compiler-rt/test/fuzzer/merge-posix.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/fuzzer/merge-posix.test b/compiler-rt/test/fuzzer/merge-posix.test index edd91324e5a92..5e342142216f8 100644 --- a/compiler-rt/test/fuzzer/merge-posix.test +++ b/compiler-rt/test/fuzzer/merge-posix.test @@ -14,7 +14,7 @@ RUN: echo ....U. > %tmp/T2/2 RUN: echo ...Z.. > %tmp/T2/3 RUN: echo ...Z.. > %tmp/T2/4 RUN: echo ....E. > %tmp/T2/5 -RUN: (echo .....R; for i in {1..1024}; do echo -n X; done) > %tmp/T2/6 +RUN: %python -c "print('.....R' + 'X' * 1024, end='')" > %tmp/T2/6 # Check that we can report an error if file size exceeded RUN: (ulimit -f 1; not %run %t-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=SIGXFSZ)