[compiler-rt/test] Use FileCheck -allow-empty instead of count 0
Hope this fixes: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-android/builds/27977/steps/run%20lit%20tests%20%5Bi686%2Ffugu-userdebug%2FN2G48C%5D/logs/stdio ``` : 'RUN: at line 8'; UBSAN_OPTIONS=suppressions=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_i686/test/ubsan/Standalone-i386/TestCases/Misc/Output/nullability.c.tmp.supp /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_i686/test/ubsan/Standalone-i386/TestCases/Misc/Output/nullability.c.tmp 2>&1 | count 0 -- Exit Code: 1 Command Output (stderr): -- Expected 0 lines, got 2. ``` Not sure what this would be printing though, a sanitizer initialization message?
This commit is contained in:
parent
94cbe13073
commit
e71835f15c
|
@ -5,7 +5,8 @@
|
|||
// RUN: echo "nullability-arg:nullability.c" > %t.supp
|
||||
// RUN: echo "nullability-return:nullability.c" >> %t.supp
|
||||
// RUN: echo "nullability-assign:nullability.c" >> %t.supp
|
||||
// RUN: UBSAN_OPTIONS=suppressions=%t.supp %run %t 2>&1 | count 0
|
||||
// RUN: UBSAN_OPTIONS=suppressions=%t.supp %run %t 2>&1 | FileCheck -allow-empty -check-prefix=SUPPRESS %s
|
||||
// SUPPRESS-NOT: runtime error
|
||||
|
||||
// CHECK: nullability.c:[[@LINE+2]]:41: runtime error: null pointer returned from function declared to never return null
|
||||
// CHECK-NEXT: nullability.c:[[@LINE+1]]:6: note: _Nonnull return type annotation specified here
|
||||
|
|
Loading…
Reference in a new issue