diff --git a/compiler-rt/test/profile/instrprof-basic.c b/compiler-rt/test/profile/instrprof-basic.c --- a/compiler-rt/test/profile/instrprof-basic.c +++ b/compiler-rt/test/profile/instrprof-basic.c @@ -32,13 +32,13 @@ // Test that merging is enabled by default with -fprofile-generate // RUN: rm -fr %t.dir4 // RUN: mkdir -p %t.dir4 -// RUN: %clang_pgogen -o %t.dir4/merge4 -O0 %s +// RUN: %clang_pgogen -o %t.dir4/merge4.exe -O0 %s // RUN: cd %t.dir4 -// RUN: %run %t.dir4/merge4 -// RUN: %run %t.dir4/merge4 -// RUN: %run %t.dir4/merge4 -// RUN: %run %t.dir4/merge4 -// RUN: rm -f %t.dir4/merge4 +// RUN: %run %t.dir4/merge4.exe +// RUN: %run %t.dir4/merge4.exe +// RUN: %run %t.dir4/merge4.exe +// RUN: %run %t.dir4/merge4.exe +// RUN: rm -f %t.dir4/merge4.exe // RUN: llvm-profdata merge -o %t.m4.profdata ./ // RUN: %clang_profuse=%t.m4.profdata -O0 -o - -S -emit-llvm %s | FileCheck %s --check-prefix=COMMON --check-prefix=PGOMERGE diff --git a/compiler-rt/test/profile/instrprof-tmpdir.c b/compiler-rt/test/profile/instrprof-tmpdir.c --- a/compiler-rt/test/profile/instrprof-tmpdir.c +++ b/compiler-rt/test/profile/instrprof-tmpdir.c @@ -1,18 +1,18 @@ // RUN: rm -rf %t // RUN: mkdir -p %t // RUN: cd %t -// RUN: %clang_profgen -o %t/binary %s +// RUN: %clang_profgen -o %t/binary.exe %s // // Check that a dir separator is appended after %t is subsituted. -// RUN: env TMPDIR="%t" LLVM_PROFILE_FILE="%%traw1.profraw" %run ./binary +// RUN: env TMPDIR="%t" LLVM_PROFILE_FILE="%%traw1.profraw" %run ./binary.exe // RUN: llvm-profdata show ./raw1.profraw | FileCheck %s -check-prefix TMPDIR // // Check that substitution works even if a redundant dir separator is added. -// RUN: env TMPDIR="%t" LLVM_PROFILE_FILE="%%t/raw2.profraw" %run ./binary +// RUN: env TMPDIR="%t" LLVM_PROFILE_FILE="%%t/raw2.profraw" %run ./binary.exe // RUN: llvm-profdata show ./raw2.profraw | FileCheck %s -check-prefix TMPDIR // // Check that we fall back to the default path if TMPDIR is missing. -// RUN: env -u TMPDIR LLVM_PROFILE_FILE="%%t/raw3.profraw" %run ./binary 2>&1 | FileCheck %s -check-prefix MISSING +// RUN: env -u TMPDIR LLVM_PROFILE_FILE="%%t/raw3.profraw" %run ./binary.exe 2>&1 | FileCheck %s -check-prefix MISSING // RUN: llvm-profdata show ./default.profraw | FileCheck %s -check-prefix TMPDIR // TMPDIR: Maximum function count: 1