[UBSan] Increase robustness of tests
authorJulian Lettner <julian.lettner@apple.com>
Mon, 3 Aug 2020 20:21:08 +0000 (13:21 -0700)
committerJulian Lettner <julian.lettner@apple.com>
Mon, 3 Aug 2020 22:26:58 +0000 (15:26 -0700)
commit1d7790604c0c4e189bf8d91583cae8f1e027b1fb
treea3520477e8a28994e049cce8dbdcffa1da75e7ea
parentaf3ec731d54d8ca5e5752256bee5b93a5929fa14
[UBSan] Increase robustness of tests

These UBSan tests assert the absence of runtime errors via `count 0`,
which means "expect no output".  This fails the test unnecessarily in
some environments (e.g., iOS simulator in our case).  Alter the test to
be a bit more specific and "expect no error" instead of "expect no
output".

rdar://65503408

Differential Revision: https://reviews.llvm.org/D85155
compiler-rt/test/ubsan/TestCases/Misc/nonnull.cpp
compiler-rt/test/ubsan/TestCases/Misc/nullability.c