Skip to content

Commit 975da02

Browse files
authored
[modules][test] Bump maximum size for embed-files-compressed.cpp for the sake of RISC-V (#111360)
The size of a.pcm produced by an RV64 clang running natively is 67416 bytes, causing this test to fail. Bump up the maximum size. The test still retains its original intent as far as I can see, as it's really trying to ensure that compressing kicks in and reduces the multi-megabyte input.
1 parent 4fadf41 commit 975da02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Modules/embed-files-compressed.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// RUN: %clang_cc1 -fmodules -I%t -fmodules-cache-path=%t -fmodule-name=a -emit-module %t/modulemap -fmodules-embed-all-files -o %t/a.pcm
1818
//
1919
// The above embeds ~4.5MB of highly-predictable /s and \ns into the pcm file.
20-
// Check that the resulting file is under 60KB:
20+
// Check that the resulting file is under 80KB:
2121
//
2222
// RUN: wc -c %t/a.pcm | FileCheck --check-prefix=CHECK-SIZE %s
23-
// CHECK-SIZE: {{(^|[^0-9])[1-5][0-9][0-9][0-9][0-9]($|[^0-9])}}
23+
// CHECK-SIZE: {{(^|[^0-9])[1-7][0-9][0-9][0-9][0-9]($|[^0-9])}}

0 commit comments

Comments
 (0)