]> granicus.if.org Git - llvm/commitdiff
Fix strip-dead-debug-info test if path contains "bar".
authorJustin Lebar <jlebar@google.com>
Thu, 16 Jun 2016 19:39:55 +0000 (19:39 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 16 Jun 2016 19:39:55 +0000 (19:39 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272941 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/StripSymbols/strip-dead-debug-info.ll

index c088af75b00d3353d26eca51cbe2e2402109005f..91074808df4d7c4f7ab581856507e0ef3049f687 100644 (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