Skip to content

Commit 32ffb29

Browse files
author
ranxinzhong
committed
sry for forgot the test
1 parent 880916d commit 32ffb29

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Test that merge-fdata fails to mix fdata files with and without the no_lbr marker.
2+
3+
# REQUIRES: system-linux
4+
5+
# RUN: split-file %s %t
6+
# RUN: not merge-fdata %t/a.fdata %t/b.fdata 2>&1 | FileCheck %s
7+
8+
# CHECK: cannot mix profile collected on LBR and non-LBR architectures
9+
10+
#--- a.fdata
11+
no_lbr
12+
main 1
13+
#--- b.fdata
14+
main 1
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Test that merge-fdata correctly handles merging two fdata files with the no_lbr marker.
2+
3+
# REQUIRES: system-linux
4+
5+
# RUN: split-file %s %t
6+
# RUN: merge-fdata %t/a.fdata %t/b.fdata -o %t/merged.fdata
7+
# RUN: FileCheck %s --input-file %t/merged.fdata
8+
9+
# CHECK: no_lbr
10+
# CHECK: main 2
11+
12+
#--- a.fdata
13+
no_lbr
14+
main 1
15+
#--- b.fdata
16+
no_lbr
17+
main 1

0 commit comments

Comments
 (0)