Skip to content

Commit 50a91e8

Browse files
committed
'Add space between ( and binary in the command for some tests
This patch adds a trailing space between the `(` and the binary in commands for some tests. Signed-off-by: Rishabh Bali <rbali@qti.qualcomm.com>
1 parent 5f201e7 commit 50a91e8

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

test/Common/LTO/LTOTempObjNotWritable/LTOTempObjNotWritable.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ RUN: mkdir -p %t2.out.llvm-lto.1.o
1616
### because it crashes only in some code paths when doing LTO.
1717

1818
RUN: %clang %clangopts -c %p/Inputs/1.c -O2 -ffunction-sections -flto -o %t1.o
19-
RUN: (%not %link %linkopts --save-temps %t1.o -o %t1.out 2>&1 || true) | %filecheck %s
19+
RUN: ( %not %link %linkopts --save-temps %t1.o -o %t1.out 2>&1 || true) | %filecheck %s
2020

2121
RUN: %clang %clangopts -c %p/Inputs/1.c -O2 -ffunction-sections -flto=thin -o %t2.o
22-
RUN: (%not %link %linkopts --save-temps %t2.o -o %t2.out 2>&1 || true) | %filecheck %s
22+
RUN: ( %not %link %linkopts --save-temps %t2.o -o %t2.out 2>&1 || true) | %filecheck %s
2323

2424
CHECK: cannot compile code generator object
2525
CHECK: .out.llvm-lto.{{[0-9]+}}.o: {{Is a directory|is a directory}}

test/Common/standalone/Patching/Patch/Patch.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ PATCH-DAG: Symbol `__llvm_patchable_xxx_g' from Input file `{{.+}}.base' with in
6969
PATCH-DAG: Trace: Symbol xxx_f, application site: 0x[[#%x,PGOT]]
7070
PATCH-DAG: Trace: Symbol xxx_g, application site: 0x[[#%x,PGOT+XLEN]]
7171

72-
RUN: (%readelf -s %t.base; %readelf -s %t.patch) | %filecheck %s --check-prefix=SYM --match-full-lines -D#%x,FP=0x8000
72+
RUN: ( %readelf -s %t.base; %readelf -s %t.patch) | %filecheck %s --check-prefix=SYM --match-full-lines -D#%x,FP=0x8000
7373

7474
## Read value values from base image.
7575
SYM: Symbol table '.symtab' contains [[#]] entries:
@@ -90,7 +90,7 @@ SYM-DAG: [[#]]: {{0*}}[[#H]] [[#]] FUNC GLOBAL DEFAULT ABS xx
9090
SYM-DAG: [[#]]: {{0*}}[[#K]] [[#]] FUNC GLOBAL DEFAULT ABS xxx_k
9191

9292
## The new .pgot will have the first pointer replaced, and the other one kept as is.
93-
RUN: (%readelf -s %t.base; %elfcopy -O binary -j .pgot %t.patch - | od -v -Ax -t x%xlen -w%xlen) | %filecheck %s --check-prefix=PGOT --match-full-lines -D#%x,FP=0x8000 -D#XLEN=%xlen
93+
RUN: ( %readelf -s %t.base; %elfcopy -O binary -j .pgot %t.patch - | od -v -Ax -t x%xlen -w%xlen) | %filecheck %s --check-prefix=PGOT --match-full-lines -D#%x,FP=0x8000 -D#XLEN=%xlen
9494
PGOT: [[#]]: [[#%x,G:]] [[#]] FUNC GLOBAL DEFAULT [[#]] xxx_g
9595
PGOT: {{0*}}0 {{0*}}[[#FP]]
9696
PGOT-NEXT: {{0*}}[[#%x,mul(XLEN,1)]] {{0*}}[[#%x,G]]

test/Common/standalone/Patching/PatchPatchPLT/PatchPatchPLT_FuncPtrCode.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN: %link %linkopts --no-emit-relocs --patch-enable --section-start=.plt=0x1000
1212
RUN: %clang %clangopts -mno-relax -O3 -fno-pic %p/Inputs/f.c -o %t.f.o -c
1313
RUN: %clang %clangopts -mno-relax -O3 -fno-pic %p/Inputs/2.riscv.s -o %t.2.o -c
1414
RUN: %link %linkopts --patch-base=%t.base --section-start=.text=0x8000 --section-start=.pgot=0x9000 %t.f.o %t.2.o -o %t.2
15-
RUN: (%readelf -s %t.2; %objdump -d -s %t.2) | %filecheck %s --match-full-lines
15+
RUN: ( %readelf -s %t.2; %objdump -d -s %t.2) | %filecheck %s --match-full-lines
1616

1717
## Check that symbol values are expected.
1818
CHECK-DAG: [[#]]: {{0*}}1000 [[#]] NOTYPE GLOBAL DEFAULT ABS __llvm_patchable_xxx_f

test/Common/standalone/Patching/PatchPatchPLT/PatchPatchPLT_FuncPtrData.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN: %link %linkopts --no-emit-relocs --patch-enable --section-start=.plt=0x1000
1212
RUN: %clang %clangopts -mno-relax -O3 -fno-pic %p/Inputs/f.c -o %t.f.o -c
1313
RUN: %clang %clangopts -mno-relax -O3 -fno-pic %p/Inputs/3.riscv%xlen.s -o %t.3.o -c
1414
RUN: %link %linkopts --patch-base=%t.base --section-start=.text=0x8000 --section-start=.data=0xa000 --section-start=.pgot=0x9000 %t.f.o %t.3.o -o %t.3
15-
RUN: (%readelf -s %t.3; %elfcopy -O binary -j .data %t.3 - | od -v -Ax -t x%xlen -w%xlen) | %filecheck %s --match-full-lines -D#XLEN=%xlen
15+
RUN: ( %readelf -s %t.3; %elfcopy -O binary -j .data %t.3 - | od -v -Ax -t x%xlen -w%xlen) | %filecheck %s --match-full-lines -D#XLEN=%xlen
1616

1717
## Read symbol values.
1818
CHECK-DAG: [[#]]: [[#%x,F:]] [[#]] NOTYPE GLOBAL DEFAULT ABS __llvm_patchable_xxx_f

0 commit comments

Comments
 (0)