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

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 12:59:56 PDT 2016


This is one of the reasons we usually pipe input into these tools, rather
than specify it on teh command line

opt ... < %s

On Thu, Jun 16, 2016 at 12:39 PM, Justin Lebar via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> 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
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160616/598728fd/attachment.html>


More information about the llvm-commits mailing list