mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-15 09:56:02 +00:00

Summary: The issue with the python path is that the path to python on Windows can contain spaces. To make the tests always work, the path to python needs to be surrounded by quotes. This change updates several configuration files which specify the path to python as a substitution and also remove quotes from existing tests. Reviewers: asmith, zturner, alexshap, jakehehrlich Reviewed By: zturner, alexshap, jakehehrlich Subscribers: mehdi_amini, nemanjai, eraman, kbarton, jakehehrlich, steven_wu, dexonsmith, stella.stamenova, delcypher, llvm-commits Differential Revision: https://reviews.llvm.org/D50206 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339073 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
1.3 KiB
LLVM
24 lines
1.3 KiB
LLVM
; REQUIRES: loadable_module
|
|
; RUN: echo "import sys" > %t.py
|
|
; RUN: echo "print('args = ' + str(sys.argv))" >> %t.py
|
|
; RUN: echo "exit(1)" >> %t.py
|
|
; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -opt-command=%python -opt-args %t.py | FileCheck %s
|
|
; RUN: not --crash opt -load %llvmshlibdir/BugpointPasses%shlibext %s -bugpoint-crashcalls -disable-symbolication 2>&1 | FileCheck --check-prefix=CRASH %s
|
|
; RUN: not bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -opt-command=%t.non.existent.opt.binary -opt-args %t.py 2>&1 | FileCheck %s --check-prefix=BAD-OPT
|
|
|
|
; Test that bugpoint disables symbolication on the opt tool to reduce runtime overhead when opt crashes
|
|
; CHECK: args = {{.*}}'-disable-symbolication'
|
|
|
|
; Test that opt, when it crashes & is passed -disable-symbolication, doesn't symbolicate.
|
|
; In theory this test should maybe be in test/tools/opt or
|
|
; test/Transforms, but since there doesn't seem to be another convenient way to
|
|
; crash opt, apart from the BugpointPasses dynamic plugin, this is the spot for
|
|
; now.
|
|
; CRASH-NOT: Signals.inc
|
|
|
|
; BAD-OPT: Specified `opt' binary does not exist: {{.*}}non.existent.opt.binary
|
|
define void @f() {
|
|
call void @f()
|
|
ret void
|
|
}
|