31 lines · plain
1// gnuwin32 printf does not work for this test because it will print \15 (CR)2// whenever \12 (LF) is in the input string.3UNSUPPORTED: system-windows4RUN: printf '\201rforpl\377' > %t.profraw5RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw6// We should fail on this because the binary IDs is not a multiple of 8 bytes.7RUN: printf '\77\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.profraw16RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw17RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw18 19// Binary IDs - There are only two in this case that are 20 bytes.20RUN: printf '\24\0\0\0\0\0\0\0' >> %t.profraw21RUN: printf '\0\1\2\3\4\5\6\7' >> %t.profraw22RUN: printf '\0\1\2\3\4\5\6\7' >> %t.profraw23RUN: printf '\0\1\2\3\0\0\0\0' >> %t.profraw24RUN: printf '\24\0\0\0\0\0\0\0' >> %t.profraw25RUN: printf '\1\1\1\1\1\1\1\1' >> %t.profraw26RUN: printf '\2\2\2\2\2\2\2\2' >> %t.profraw27RUN: printf '\3\3\3\3\0\0\0\0' >> %t.profraw28 29// RUN: not llvm-profdata show --binary-ids %t.profraw 2>&1 | FileCheck %s30// CHECK: invalid instrumentation profile data (file header is corrupt)31