[lld] r293084 - Make this test more strict.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 12:53:37 PST 2017


Author: rafael
Date: Wed Jan 25 14:53:36 2017
New Revision: 293084

URL: http://llvm.org/viewvc/llvm-project?rev=293084&view=rev
Log:
Make this test more strict.

While at it, also remove unused command line options.

Modified:
    lld/trunk/test/ELF/retain-symbols-file.s

Modified: lld/trunk/test/ELF/retain-symbols-file.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/retain-symbols-file.s?rev=293084&r1=293083&r2=293084&view=diff
==============================================================================
--- lld/trunk/test/ELF/retain-symbols-file.s (original)
+++ lld/trunk/test/ELF/retain-symbols-file.s Wed Jan 25 14:53:36 2017
@@ -3,20 +3,41 @@
 # RUN: echo "bar" > %t_retain.txt
 # RUN: echo "foo" >> %t_retain.txt
 # RUN: ld.lld -shared --retain-symbols-file=%t_retain.txt %t -o %t2
-# RUN: llvm-readobj -s -sd -t %t2 | FileCheck %s
+# RUN: llvm-readobj -t %t2 | FileCheck %s
 
 ## Check separate form.
 # RUN: ld.lld -shared --retain-symbols-file %t_retain.txt %t -o %t2
-# RUN: llvm-readobj -s -sd -t %t2 | FileCheck %s
+# RUN: llvm-readobj -t %t2 | FileCheck %s
 
-# CHECK:       Symbols [
+# CHECK:      Symbols [
 # CHECK-NEXT:   Symbol {
 # CHECK-NEXT:     Name:  (0)
-# CHECK:        Symbol {
+# CHECK-NEXT:     Value:
+# CHECK-NEXT:     Size:
+# CHECK-NEXT:     Binding:
+# CHECK-NEXT:     Type:
+# CHECK-NEXT:     Other:
+# CHECK-NEXT:     Section:
+# CHECK-NEXT:   }
+# CHECK-NEXT:   Symbol {
 # CHECK-NEXT:     Name: bar
-# CHECK:        Symbol {
+# CHECK-NEXT:     Value:
+# CHECK-NEXT:     Size:
+# CHECK-NEXT:     Binding: Global
+# CHECK-NEXT:     Type:
+# CHECK-NEXT:     Other:
+# CHECK-NEXT:     Section: .text
+# CHECK-NEXT:   }
+# CHECK-NEXT:   Symbol {
 # CHECK-NEXT:     Name: foo
-# CHECK-NOT:    Symbol
+# CHECK-NEXT:     Value:
+# CHECK-NEXT:     Size:
+# CHECK-NEXT:     Binding: Global
+# CHECK-NEXT:     Type:
+# CHECK-NEXT:     Other:
+# CHECK-NEXT:     Section: .text
+# CHECK-NEXT:   }
+# CHECK-NEXT: ]
 
 .text
 .globl _start




More information about the llvm-commits mailing list