2014-03-19 02:20:46 +00:00
|
|
|
RUN: not llvm-profdata merge %p/Inputs/empty.profdata %p/Inputs/foo3-1.profdata 2>&1 | FileCheck %s --check-prefix=LENGTH
|
|
|
|
RUN: not llvm-profdata merge %p/Inputs/foo3-1.profdata %p/Inputs/foo3bar3-1.profdata 2>&1 | FileCheck %s --check-prefix=LENGTH
|
|
|
|
RUN: not llvm-profdata merge %p/Inputs/foo4-1.profdata %p/Inputs/empty.profdata 2>&1 | FileCheck %s --check-prefix=LENGTH
|
2014-03-21 17:24:48 +00:00
|
|
|
LENGTH: error: Number of instrumented functions differ
|
2014-03-12 22:00:57 +00:00
|
|
|
|
2014-03-19 02:20:46 +00:00
|
|
|
RUN: not llvm-profdata merge %p/Inputs/foo3-1.profdata %p/Inputs/bar3-1.profdata 2>&1 | FileCheck %s --check-prefix=NAME
|
2014-03-21 17:24:48 +00:00
|
|
|
NAME: error: Function name mismatch, foo != bar
|
2014-03-12 22:00:57 +00:00
|
|
|
|
2014-03-19 02:20:46 +00:00
|
|
|
RUN: not llvm-profdata merge %p/Inputs/foo3-1.profdata %p/Inputs/foo4-1.profdata 2>&1 | FileCheck %s --check-prefix=HASH
|
2014-03-21 17:24:48 +00:00
|
|
|
HASH: error: Function hash mismatch for foo
|
2014-03-12 22:00:57 +00:00
|
|
|
|
2014-03-19 02:20:46 +00:00
|
|
|
RUN: not llvm-profdata merge %p/Inputs/overflow.profdata %p/Inputs/overflow.profdata 2>&1 | FileCheck %s --check-prefix=OVERFLOW
|
2014-03-21 17:24:48 +00:00
|
|
|
OVERFLOW: error: Counter overflow for overflow
|
2014-03-12 22:00:57 +00:00
|
|
|
|
2014-03-19 02:20:46 +00:00
|
|
|
RUN: not llvm-profdata merge %p/Inputs/invalid-count-later.profdata %p/Inputs/invalid-count-later.profdata 2>&1 | FileCheck %s --check-prefix=INVALID-COUNT-LATER
|
2014-03-21 17:24:48 +00:00
|
|
|
INVALID-COUNT-LATER: error: {{.*}}: Malformed profile data
|
2014-03-12 22:00:57 +00:00
|
|
|
|
2014-03-19 02:20:46 +00:00
|
|
|
RUN: not llvm-profdata merge %p/Inputs/bad-hash.profdata %p/Inputs/bad-hash.profdata 2>&1 | FileCheck %s --check-prefix=BAD-HASH
|
2014-03-21 17:24:48 +00:00
|
|
|
BAD-HASH: error: {{.*}}: Malformed profile data
|