Raw profile data file may contain lines truncated due to unexpected app exit. This change is to have merge_fdata check number of fields in each line of raw profile data file and ignore a line if the number is not expected.
19 lines
378 B
Plaintext
19 lines
378 B
Plaintext
## Check that merge-fdata tool correctly processes fdata files with header
|
|
## string produced by no-lbr mode (no_lbr)
|
|
|
|
# REQUIRES: system-linux
|
|
|
|
# RUN: split-file %s %t
|
|
# RUN: merge-fdata %t/a.fdata %t/b.fdata -o %t/merged.fdata
|
|
# RUN: FileCheck %s --input-file %t/merged.fdata
|
|
|
|
# CHECK: no_lbr
|
|
# CHECK: 1 main 0 2
|
|
|
|
#--- a.fdata
|
|
no_lbr
|
|
1 main 0 1
|
|
#--- b.fdata
|
|
no_lbr
|
|
1 main 0 1
|