[compiler-rt] 63c38ba - [Sanitizers] Fix fake_test_gc not working on devices (#91284)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 12:23:30 PDT 2024


Author: Mariusz Borsa
Date: 2024-05-08T12:23:25-07:00
New Revision: 63c38ba64ebe079439e29acf43f24c33ecf44f4c

URL: https://github.com/llvm/llvm-project/commit/63c38ba64ebe079439e29acf43f24c33ecf44f4c
DIFF: https://github.com/llvm/llvm-project/commit/63c38ba64ebe079439e29acf43f24c33ecf44f4c.diff

LOG: [Sanitizers] Fix fake_test_gc not working on devices (#91284)

The way the LIT RUN command is currently constructed ( %run not --crash
%t ) causes the test failure on devices - since 'not' is a LLVM built
command, not available on devices.

Changing the command to read 'not --crash %run %t' fixes it, as 'not'
now executes on the host running the test.

rdar://115914588

Co-authored-by: Mariusz Borsa <m_borsa at apple.com>

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp b/compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp
index 524ca29f2fc57..8c368b9b1b947 100644
--- a/compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O0 -pthread %s -o %t && %env_asan_opts=use_sigaltstack=0 %run not --crash %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 -pthread %s -o %t && %env_asan_opts=use_sigaltstack=0 not --crash %run %t 2>&1 | FileCheck %s
 
 // Check that fake stack does not discard frames on the main stack, when GC is
 // triggered from high alt stack.


        


More information about the llvm-commits mailing list