21 lines · plain
1RUN: printf '\201rforpl\377' > %t.profraw2RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw3// We should fail on this because the data buffer (profraw file) is not long4// enough to hold this binary IDs size. NOTE that this (combined with the 8-byte5// alignment requirement for binary IDs size) will ensure we can at least read one6// 8-byte size if the binary IDs are provided.7RUN: printf '\8\0\0\0\0\0\0\0' >> %t.profraw8RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw9RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw10RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw11RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw12RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw13RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw14RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw15RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw16 17RUN: printf '\0\0\0\0\0\0\0' >> %t.profraw18 19// RUN: not llvm-profdata show --binary-ids %t.profraw 2>&1 | FileCheck %s20// CHECK: invalid instrumentation profile data (file header is corrupt)21