|
1 |
| -// Test big archive recognition and error handling in llvm-symbolizer |
| 1 | +// Test big archive recognition and error handling in llvm-symbolizer. |
2 | 2 |
|
3 |
| -// Generate object files |
| 3 | +// Generate object files. |
4 | 4 | // RUN: yaml2obj -o %t-32.o %S/Inputs/big-archive-32.yaml
|
5 | 5 | // RUN: yaml2obj -o %t-64.o %S/Inputs/big-archive-64.yaml
|
6 | 6 |
|
7 |
| -// Create archive with same-named members using different modes |
| 7 | +// Create archive with same-named members using different modes. |
8 | 8 | // RUN: rm -f %t.a
|
9 | 9 | // RUN: cp %t-32.o %t.o
|
10 | 10 | // RUN: llvm-ar %if system-aix %{-X32%} crv %t.a %t.o
|
11 | 11 | // RUN: cp %t-64.o %t.o
|
12 | 12 | // RUN: llvm-ar %if system-aix %{-X64 rv%} %else %{qv%} %t.a %t.o
|
13 | 13 |
|
14 |
| -// Verify archive contains two members with same name |
| 14 | +// Verify archive contains two members with same name. |
15 | 15 | // RUN: llvm-ar tv %if system-aix %{-X32_64%} %t.a | FileCheck %s --check-prefix=CHECK-ARCHIVE
|
16 | 16 | // CHECK-ARCHIVE: {{.*}}symbolize-big-archive-xcoff.test.tmp.o{{$}}
|
17 | 17 | // CHECK-ARCHIVE: {{.*}}symbolize-big-archive-xcoff.test.tmp.o{{$}}
|
18 | 18 |
|
19 |
| -// Test successful symbolization |
| 19 | +// Test successful symbolization. |
20 | 20 | // RUN: llvm-symbolizer --default-arch=ppc --obj="%t.a(%{t:stem}.tmp.o)" 0x0 | FileCheck %s --check-prefix=CHECK-32
|
21 | 21 | // RUN: llvm-symbolizer --default-arch=ppc64 --obj="%t.a(%{t:stem}.tmp.o)" 0x0 | FileCheck %s --check-prefix=CHECK-64
|
22 | 22 | // RUN: llvm-symbolizer --obj="%t.a(%{t:stem}.tmp.o):ppc" 0x0 | FileCheck %s --check-prefix=CHECK-32
|
23 | 23 | // RUN: llvm-symbolizer --obj="%t.a(%{t:stem}.tmp.o):ppc64" 0x0 | FileCheck %s --check-prefix=CHECK-64
|
24 | 24 | // CHECK-32: foo
|
25 | 25 | // CHECK-64: foo
|
26 | 26 |
|
27 |
| -// Test error cases |
| 27 | +// Test error cases. |
28 | 28 | // RUN: not llvm-symbolizer --obj="%t.a(nonexistent.o)" 0x1000 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
|
29 | 29 | // CHECK-ERROR: error: {{.*}}no matching member{{.*}}
|
30 | 30 | // RUN: not llvm-symbolizer --obj="%t.o(%{t:stem}.tmp.o)" 0x1000 2>&1 | FileCheck %s --check-prefix=CHECK-NOTARCHIVE
|
|
0 commit comments