21 lines
974 B
Plaintext
21 lines
974 B
Plaintext
RUN: printf '\201rforpl\377' > %t.profraw
|
|
RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw
|
|
// We should fail on this because the data buffer (profraw file) is not long
|
|
// enough to hold this binary IDs size. NOTE that this (combined with the 8-byte
|
|
// alignment requirement for binary IDs size) will ensure we can at least read one
|
|
// 8-byte size if the binary IDs are provided.
|
|
RUN: printf '\8\0\0\0\0\0\0\0' >> %t.profraw
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0' >> %t.profraw
|
|
|
|
// RUN: not llvm-profdata show --binary-ids %t.profraw 2>&1 | FileCheck %s
|
|
// CHECK: invalid instrumentation profile data (file header is corrupt)
|