[compiler-rt] 5d3a995 - Port ubsan nullability.c test to Windows

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 10:42:00 PST 2020


I'm sorry about the breakage.

Is there a mode I can enable when testing with lit to suss out this type of failure pre-commit? Or, if I should just create a Phab review each time and let the pre-merge checks catch issues, that would be fine too.

vedant

> On Mar 3, 2020, at 1:19 PM, Reid Kleckner via llvm-commits <llvm-commits at lists.llvm.org> wrote:
> 
> 
> 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
> 
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list