From b0bd07aff7ffc4bbda65e57ac4d0e50327ab3f70 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Thu, 16 Jun 2016 19:39:55 +0000 Subject: [PATCH] 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 --- llvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll b/llvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll index c088af75b00d..91074808df4d 100644 --- a/llvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll +++ b/llvm/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