Skip to content

Commit 53e62c6

Browse files
[compiler-rt][profile][tests][NFC] Avoid using a.out from PATH (#136465)
Fix use of `a.out` from the PATH by specifying `./a.out`.
1 parent e79d8f6 commit 53e62c6

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

compiler-rt/test/profile/AIX/pgo-lto-bcdtor-function-section.test

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@ int main() { return foo() - 3; }
1515
// RUN: %clang_pgogen -O2 -c -fno-function-sections main.c
1616
//
1717
// RUN: %clang_pgogen -Wl,-bcdtors:all foo.o main.o
18-
// RUN: rm -f default* && %run a.out
18+
// RUN: rm -f default* && %run ./a.out
1919
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
2020
//
2121
// RUN: %clang_pgogen -Wl,-bcdtors:mbr foo.o main.o
22-
// RUN: rm -f default* && %run a.out
22+
// RUN: rm -f default* && %run ./a.out
2323
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
2424

2525
// RUN: %clang_pgogen -O2 -c -ffunction-sections foo.c
2626
// RUN: %clang_pgogen -O2 -c -ffunction-sections main.c
2727
//
2828
// RUN: %clang_pgogen -Wl,-bcdtors:all foo.o main.o
29-
// RUN: rm -f default* && %run a.out
29+
// RUN: rm -f default* && %run ./a.out
3030
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
3131
//
3232
// RUN: %clang_pgogen -Wl,-bcdtors:mbr foo.o main.o
33-
// RUN: rm -f default* && %run a.out
33+
// RUN: rm -f default* && %run ./a.out
3434
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
3535

3636
// ## no PGO at compile step, but PGO at link step.
3737
// RUN: %clang -O2 -c foo.c
3838
// RUN: %clang -O2 -c main.c
3939
//
4040
// RUN: %clang_pgogen -Wl,-bcdtors:all foo.o main.o
41-
// RUN: rm -f default* && %run a.out
41+
// RUN: rm -f default* && %run ./a.out
4242
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
4343
//
4444
// RUN: %clang_pgogen -Wl,-bcdtors:mbr foo.o main.o
45-
// RUN: rm -f default* && %run a.out
45+
// RUN: rm -f default* && %run ./a.out
4646
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
4747

4848
// # LTO, with and without function-sections, and all permutations of -bcdtors
@@ -51,64 +51,64 @@ int main() { return foo() - 3; }
5151
// RUN: %clang -O2 -c -flto main.c
5252
//
5353
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:all foo.o main.o
54-
// RUN: rm -f default* && %run a.out
54+
// RUN: rm -f default* && %run ./a.out
5555
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
5656
//
5757
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:mbr foo.o main.o
58-
// RUN: rm -f default* && %run a.out
58+
// RUN: rm -f default* && %run ./a.out
5959
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
6060
//
6161
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:all foo.o main.o
62-
// RUN: rm -f default* && %run a.out
62+
// RUN: rm -f default* && %run ./a.out
6363
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
6464
//
6565
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:mbr foo.o main.o
66-
// RUN: rm -f default* && %run a.out
66+
// RUN: rm -f default* && %run ./a.out
6767
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
6868

6969
// ## LTO one file, PGO at compile and link
7070
// RUN: %clang -O2 -c -fno-function-sections foo.c
7171
// RUN: %clang_pgogen -O2 -c -flto main.c
7272
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:all foo.o main.o
73-
// RUN: rm -f default* && %run a.out
73+
// RUN: rm -f default* && %run ./a.out
7474
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=MAIN
7575

7676
// RUN: %clang -O2 -c -flto foo.c
7777
// RUN: %clang_pgogen -O2 -c -fno-function-sections main.c
7878
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:mbr foo.o main.o
79-
// RUN: rm -f default* && %run a.out
79+
// RUN: rm -f default* && %run ./a.out
8080
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=MAIN
8181

8282
// RUN: %clang -O2 -c -flto foo.c
8383
// RUN: %clang_pgogen -O2 -c -ffunction-sections main.c
8484
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:all foo.o main.o
85-
// RUN: rm -f default* && %run a.out
85+
// RUN: rm -f default* && %run ./a.out
8686
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=MAIN
8787

8888
// RUN: %clang -O2 -c -ffunction-sections foo.c
8989
// RUN: %clang_pgogen -O2 -c -flto main.c
9090
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:mbr foo.o main.o
91-
// RUN: rm -f default* && %run a.out
91+
// RUN: rm -f default* && %run ./a.out
9292
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=MAIN
9393

9494
// ## LTO and PGO both files
9595
// RUN: %clang_pgogen -O2 -c -flto foo.c
9696
// RUN: %clang_pgogen -O2 -c -flto main.c
9797
//
9898
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:all foo.o main.o
99-
// RUN: rm -f default* && %run a.out
99+
// RUN: rm -f default* && %run ./a.out
100100
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
101101
//
102102
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:mbr foo.o main.o
103-
// RUN: rm -f default* && %run a.out
103+
// RUN: rm -f default* && %run ./a.out
104104
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
105105
//
106106
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:all foo.o main.o
107-
// RUN: rm -f default* && %run a.out
107+
// RUN: rm -f default* && %run ./a.out
108108
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
109109
//
110110
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:mbr foo.o main.o
111-
// RUN: rm -f default* && %run a.out
111+
// RUN: rm -f default* && %run ./a.out
112112
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
113113

114114
// BOTH-DAG: foo:

0 commit comments

Comments
 (0)