summaryrefslogtreecommitdiffstats
path: root/llvm/test/BugPoint
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-02-09 06:09:15 +0000
committerVedant Kumar <vsk@apple.com>2018-02-09 06:09:15 +0000
commit85696ad91de00dd24ea44dea3dd73968909b806e (patch)
tree66249e920e17739bfa87c0d3610ecfddd899cfa7 /llvm/test/BugPoint
parent9c6cd0458b68c0d2c399ccf7592331227f02878f (diff)
downloadbcm5719-llvm-85696ad91de00dd24ea44dea3dd73968909b806e.tar.gz
bcm5719-llvm-85696ad91de00dd24ea44dea3dd73968909b806e.zip
[bugpoint] Report non-existent opt binary
Bugpoint will keep going even if the opt binary it's given doesn't exist. It should at least alert the user, so it's clear why reductions are failing. llvm-svn: 324713
Diffstat (limited to 'llvm/test/BugPoint')
-rw-r--r--llvm/test/BugPoint/unsymbolized.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/BugPoint/unsymbolized.ll b/llvm/test/BugPoint/unsymbolized.ll
index 8547f220ea2..ae47682195b 100644
--- a/llvm/test/BugPoint/unsymbolized.ll
+++ b/llvm/test/BugPoint/unsymbolized.ll
@@ -4,6 +4,7 @@
; 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'
@@ -15,6 +16,7 @@
; 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
OpenPOWER on IntegriCloud