[llvm-commits] [llvm] r142077 - /llvm/trunk/test/Linker/2011-08-18-unique-debug-type.ll

Nico Weber nicolasweber at gmx.de
Sat Oct 15 11:07:17 PDT 2011


Author: nico
Date: Sat Oct 15 13:07:16 2011
New Revision: 142077

URL: http://llvm.org/viewvc/llvm-project?rev=142077&view=rev
Log:
Let this test pass even if 'int' is somewhere in its directory path.

On my machine, grep matched:

  ; ModuleID = '/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm/test/Linker/2011-08-18-unique-debug-type.ll'
  !9 = metadata !{i32 720932, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]

Explicitly filter out the ModuleID line.


Modified:
    llvm/trunk/test/Linker/2011-08-18-unique-debug-type.ll

Modified: llvm/trunk/test/Linker/2011-08-18-unique-debug-type.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/2011-08-18-unique-debug-type.ll?rev=142077&r1=142076&r2=142077&view=diff
==============================================================================
--- llvm/trunk/test/Linker/2011-08-18-unique-debug-type.ll (original)
+++ llvm/trunk/test/Linker/2011-08-18-unique-debug-type.ll Sat Oct 15 13:07:16 2011
@@ -1,5 +1,5 @@
 
-; RUN: llvm-link %s %p/2011-08-18-unique-debug-type2.ll -S -o - | grep "int" | count 1
+; RUN: llvm-link %s %p/2011-08-18-unique-debug-type2.ll -S -o - | grep "int" | grep -v "^; ModuleID" | count 1
 ; Test to check only one MDNode for "int" after linking.
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
 target triple = "x86_64-apple-macosx10.7.0"





More information about the llvm-commits mailing list