brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 5336961 Raw
46 lines · plain
1## Test that merge-fdata correctly handles YAML header with an uninitialized2## fields. a.yaml does not have hash-func set and it used to crash merge-fdata.3 4# REQUIRES: system-linux5 6# RUN: split-file %s %t7# RUN: not merge-fdata %t/a.yaml %t/b.yaml 2>&1 | FileCheck %s8 9# CHECK: cannot merge profiles with different hash functions10 11#--- a.yaml12---13header:14  profile-version: 115  binary-name:     'a.out'16  binary-build-id: '<unknown>'17  profile-flags:   [ lbr ]18  profile-origin:  branch profile reader19  profile-events:  ''20  dfs-order:       false21functions:22  - name:            'main'23    fid:             124    hash:            0x50BBA3441D43649125    exec:            126    nblocks:         027...28#--- b.yaml29---30header:31  profile-version: 132  binary-name:     'a.out'33  binary-build-id: '<unknown>'34  profile-flags:   [ lbr ]35  profile-origin:  branch profile reader36  profile-events:  ''37  dfs-order:       false38  hash-func: xxh339functions:40  - name:            'main'41    fid:             142    hash:            0x50BBA3441D43649143    exec:            144    nblocks:         045...46