Skip to content

Commit 428ee0b

Browse files
author
Qiongsi Wu
committed
Revise the test case so it can pass on Windows.
1 parent ebae715 commit 428ee0b

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed
Binary file not shown.

compiler-rt/test/profile/instrprof-api.c

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,10 @@
22
// RUN: %clang_profgen %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
33
// RUN: %clang_pgogen %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
44

5-
// Testing profile use. Generate some profile file first.
6-
// RUN: rm -rf rawprof.profraw
7-
// RUN: %clang_profgen -o %t1 %s
8-
// RUN: %run %t1
9-
// RUN: llvm-profdata merge -o %t1.profdata rawprof.profraw
10-
// RUN: %clang_profuse=%t1.profdata %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFUSE
11-
// RUN: rm -rf rawprof.profraw
12-
// RUN: %clang_pgogen -o %t2 %s
13-
// RUN: %run %t2
14-
// RUN: llvm-profdata merge -o %t2.profdata rawprof.profraw
15-
// RUN: %clang_pgouse=%t2.profdata %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFUSE
5+
// Testing profile use.
6+
// RUN: %clang_pgouse=%S/Inputs/instrprof-api.c.profdata %s -S -emit-llvm -o - \
7+
// RUN: | FileCheck %s --check-prefix=PROFUSE
8+
169
#include "profile/instr_prof_interface.h"
1710

1811
__attribute__((noinline)) int bar() { return 4; }

0 commit comments

Comments
 (0)