Fix strip-dead-debug-info test if path contains "bar".

This test checks that the string 'bar' (no quotes) doesn't exist in the
output after running opt.  But opt embeds the absolute path to the
filename, and on my machine, the filename contains the string 'jlebar',
causing the test to fail.

This patch changes the test to look for the string '"bar"' instead.

llvm-svn: 272941
This commit is contained in:
Justin Lebar 2016-06-16 19:39:55 +00:00
parent 4ce6a93226
commit b0bd07aff7
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
; RUN: opt -strip-dead-debug-info -verify %s -S | FileCheck %s
; CHECK: ModuleID = '{{.*}}'
; CHECK-NOT: bar
; CHECK-NOT: abcd
; CHECK-NOT: "bar"
; CHECK-NOT: "abcd"
@xyz = global i32 2