From: Justin Lebar Date: Thu, 16 Jun 2016 19:39:55 +0000 (+0000) Subject: Fix strip-dead-debug-info test if path contains "bar". X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47367896f12fdc12909c01d86f64812260f1bfc1;p=llvm 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272941 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/StripSymbols/strip-dead-debug-info.ll b/test/Transforms/StripSymbols/strip-dead-debug-info.ll index c088af75b00..91074808df4 100644 --- a/test/Transforms/StripSymbols/strip-dead-debug-info.ll +++ b/test/Transforms/StripSymbols/strip-dead-debug-info.ll @@ -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