[llvm] r272941 - Fix strip-dead-debug-info test if path contains "bar".

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 12:39:55 PDT 2016


Author: jlebar
Date: Thu Jun 16 14:39:55 2016
New Revision: 272941

URL: http://llvm.org/viewvc/llvm-project?rev=272941&view=rev
Log:
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.

Modified:
    llvm/trunk/test/Transforms/StripSymbols/strip-dead-debug-info.ll

Modified: llvm/trunk/test/Transforms/StripSymbols/strip-dead-debug-info.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/StripSymbols/strip-dead-debug-info.ll?rev=272941&r1=272940&r2=272941&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/StripSymbols/strip-dead-debug-info.ll (original)
+++ llvm/trunk/test/Transforms/StripSymbols/strip-dead-debug-info.ll Thu Jun 16 14:39:55 2016
@@ -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
 




More information about the llvm-commits mailing list