[llvm] r367884 - [llvm-readobj][test] Add llvm-readobj style test cases for r367878
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 09:26:48 PDT 2019
Author: rupprecht
Date: Mon Aug 5 09:26:48 2019
New Revision: 367884
URL: http://llvm.org/viewvc/llvm-project?rev=367884&view=rev
Log:
[llvm-readobj][test] Add llvm-readobj style test cases for r367878
Modified:
llvm/trunk/test/tools/llvm-readobj/note-core.test
Modified: llvm/trunk/test/tools/llvm-readobj/note-core.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-readobj/note-core.test?rev=367884&r1=367883&r2=367884&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-readobj/note-core.test (original)
+++ llvm/trunk/test/tools/llvm-readobj/note-core.test Mon Aug 5 09:26:48 2019
@@ -1,7 +1,8 @@
## Test that note values are interpreted correctly for core files.
# RUN: yaml2obj %s > %t.o
-# RUN: llvm-readelf --notes %t.o 2>&1 | FileCheck %s
+# RUN: llvm-readelf --notes %t.o | FileCheck %s --check-prefix=GNU
+# RUN: llvm-readobj --notes %t.o | FileCheck %s --check-prefix=LLVM
--- !ELF
FileHeader:
@@ -19,10 +20,42 @@ ProgramHeaders:
Sections:
- Section: .note.foo
-# CHECK: Displaying notes found
-# CHECK-NEXT: Owner Data size Description
-# CHECK-NEXT: CORE 0x00000000 NT_PRSTATUS (prstatus structure)
-# CHECK-NEXT: CORE 0x00000000 NT_FPREGSET (floating point registers)
-# CHECK-NEXT: CORE 0x00000000 NT_PRPSINFO (prpsinfo structure)
-# CHECK-NEXT: CORE 0x00000000 NT_TASKSTRUCT (task structure)
-# CHECK-NEXT: CORE 0x00000000 NT_AUXV (auxiliary vector)
+# GNU: Displaying notes found
+# GNU-NEXT: Owner Data size Description
+# GNU-NEXT: CORE 0x00000000 NT_PRSTATUS (prstatus structure)
+# GNU-NEXT: CORE 0x00000000 NT_FPREGSET (floating point registers)
+# GNU-NEXT: CORE 0x00000000 NT_PRPSINFO (prpsinfo structure)
+# GNU-NEXT: CORE 0x00000000 NT_TASKSTRUCT (task structure)
+# GNU-NEXT: CORE 0x00000000 NT_AUXV (auxiliary vector)
+
+# LLVM: Notes [
+# LLVM-NEXT: NoteSection {
+# LLVM-NEXT: Offset:
+# LLVM-NEXT: Size:
+# LLVM-NEXT: Note {
+# LLVM-NEXT: Owner: CORE
+# LLVM-NEXT: Data size: 0x0
+# LLVM-NEXT: Type: NT_PRSTATUS (prstatus structure)
+# LLVM-NEXT: }
+# LLVM-NEXT: Note {
+# LLVM-NEXT: Owner: CORE
+# LLVM-NEXT: Data size: 0x0
+# LLVM-NEXT: Type: NT_FPREGSET (floating point registers)
+# LLVM-NEXT: }
+# LLVM-NEXT: Note {
+# LLVM-NEXT: Owner: CORE
+# LLVM-NEXT: Data size: 0x0
+# LLVM-NEXT: Type: NT_PRPSINFO (prpsinfo structure)
+# LLVM-NEXT: }
+# LLVM-NEXT: Note {
+# LLVM-NEXT: Owner: CORE
+# LLVM-NEXT: Data size: 0x0
+# LLVM-NEXT: Type: NT_TASKSTRUCT (task structure)
+# LLVM-NEXT: }
+# LLVM-NEXT: Note {
+# LLVM-NEXT: Owner: CORE
+# LLVM-NEXT: Data size: 0x0
+# LLVM-NEXT: Type: NT_AUXV (auxiliary vector)
+# LLVM-NEXT: }
+# LLVM-NEXT: }
+# LLVM-NEXT: ]
More information about the llvm-commits
mailing list