[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / tools / llvm-profdata / insufficient-binary-ids-size.test
blob71fad58e64230df63d92ffef8094dc03c8a8348f
1 RUN: printf '\201rforpl\377' > %t.profraw
2 RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw
3 // We should fail on this because the data buffer (profraw file) is not long
4 // enough to hold this binary IDs size. NOTE that this (combined with the 8-byte
5 // alignment requirement for binary IDs size) will ensure we can at least read one
6 // 8-byte size if the binary IDs are provided.
7 RUN: printf '\8\0\0\0\0\0\0\0' >> %t.profraw
8 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
9 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
10 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
11 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
12 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
13 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
14 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
15 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
17 RUN: printf '\0\0\0\0\0\0\0' >> %t.profraw
19 // RUN: not llvm-profdata show --binary-ids  %t.profraw 2>&1 | FileCheck %s
20 // CHECK: invalid instrumentation profile data (file header is corrupt)