From: Richard Smith Date: Mon, 20 Jul 2015 08:40:51 +0000 (+0000) Subject: Attempt to fix greendragon buildbot failures; apparently wc sometimes inserts a leadi... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0493b84e16dd924362c73f65df05cfb7d23a8615;p=clang Attempt to fix greendragon buildbot failures; apparently wc sometimes inserts a leading space into its output. Just check for a matching number anywhere in the output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242661 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Modules/empty.modulemap b/test/Modules/empty.modulemap index d451ad2154..0d1718409d 100644 --- a/test/Modules/empty.modulemap +++ b/test/Modules/empty.modulemap @@ -13,9 +13,9 @@ // The module file should be identical each time we produce it. // RUN: diff %t/base.pcm %t/check.pcm // -// We expect an empty module to be less than 30KB. +// We expect an empty module to be less than 30KB (and at least 10K, for now). // REQUIRES: shell // RUN: wc -c %t/base.pcm | FileCheck --check-prefix=CHECK-SIZE %s -// CHECK-SIZE: {{^[12][0-9]{4} }} +// CHECK-SIZE: {{(^|[^0-9])[12][0-9][0-9][0-9][0-9]($|[^0-9])}} module empty { header "Inputs/empty.h" export * }