[compiler-rt] 5d3a995 - Port ubsan nullability.c test to Windows
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 13:19:09 PST 2020
Author: Reid Kleckner
Date: 2020-03-03T13:18:58-08:00
New Revision: 5d3a9959382762f84318b52f6ba6532cb8b5c807
URL: https://github.com/llvm/llvm-project/commit/5d3a9959382762f84318b52f6ba6532cb8b5c807
DIFF: https://github.com/llvm/llvm-project/commit/5d3a9959382762f84318b52f6ba6532cb8b5c807.diff
LOG: Port ubsan nullability.c test to Windows
Two issues:
- Need to add env prefix to be compatible with the lit internal shell
- Need to quote the colon in Windows paths with '"%t.supp"'
Added:
Modified:
compiler-rt/test/ubsan/TestCases/Misc/nullability.c
Removed:
################################################################################
diff --git a/compiler-rt/test/ubsan/TestCases/Misc/nullability.c b/compiler-rt/test/ubsan/TestCases/Misc/nullability.c
index 50295fe503f9..a68d0f8ea362 100644
--- a/compiler-rt/test/ubsan/TestCases/Misc/nullability.c
+++ b/compiler-rt/test/ubsan/TestCases/Misc/nullability.c
@@ -6,7 +6,7 @@
// 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 | FileCheck -allow-empty -check-prefix=SUPPRESS %s
+// RUN: env 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
More information about the llvm-commits
mailing list