Skip to content

Commit 922a431

Browse files
authored
[profdata][nfc] Disable several tests on Windows (#83907)
Several profdata tests pass the byte 012 to printf. This causes these tests to fail when using GnuWin32's version of printf because printf will detect that 012 is the LF character and will prepend the byte 015 (CR) in front of LF. This change is required after #82711 which bumped the version number.
1 parent d95e6d0 commit 922a431

11 files changed

+33
-0
lines changed

llvm/test/tools/llvm-profdata/binary-ids-padding.test

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
// INSTR_PROF_RAW_HEADER(uint64_t, NumVTables, NumVTables)
1515
// INSTR_PROF_RAW_HEADER(uint64_t, ValueKindLast, IPVK_Last)
1616

17+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
18+
// whenever \12 (LF) is in the input string.
19+
UNSUPPORTED: system-windows
1720
RUN: printf '\201rforpl\377' > %t.profraw
1821
RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
1922
// There will be 2 20-byte binary IDs, so the total Binary IDs size will be 64 bytes.

llvm/test/tools/llvm-profdata/large-binary-id-size.test

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
2+
// whenever \12 (LF) is in the input string.
3+
UNSUPPORTED: system-windows
14
RUN: printf '\201rforpl\377' > %t.profraw
25
RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
36
RUN: printf '\40\0\0\0\0\0\0\0' >> %t.profraw

llvm/test/tools/llvm-profdata/malformed-not-space-for-another-header.test

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
// INSTR_PROF_RAW_HEADER(uint64_t, NumVTables, NumVTables)
1515
// INSTR_PROF_RAW_HEADER(uint64_t, ValueKindLast, IPVK_Last)
1616

17+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
18+
// whenever \12 (LF) is in the input string.
19+
UNSUPPORTED: system-windows
1720
RUN: printf '\201rforpl\377' > %t.profraw
1821
RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
1922
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw

llvm/test/tools/llvm-profdata/malformed-num-counters-zero.test

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
// INSTR_PROF_RAW_HEADER(uint64_t, NumVTables, NumVTables)
1515
// INSTR_PROF_RAW_HEADER(uint64_t, ValueKindLast, IPVK_Last)
1616

17+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
18+
// whenever \12 (LF) is in the input string.
19+
UNSUPPORTED: system-windows
1720
RUN: printf '\201rforpl\377' > %t.profraw
1821
RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
1922
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw

llvm/test/tools/llvm-profdata/malformed-ptr-to-counter-array.test

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
// INSTR_PROF_RAW_HEADER(uint64_t, NumVTables, NumVTables)
1515
// INSTR_PROF_RAW_HEADER(uint64_t, ValueKindLast, IPVK_Last)
1616

17+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
18+
// whenever \12 (LF) is in the input string.
19+
UNSUPPORTED: system-windows
1720
RUN: printf '\201rforpl\377' > %t.profraw
1821
RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
1922
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw

llvm/test/tools/llvm-profdata/misaligned-binary-ids-size.test

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
2+
// whenever \12 (LF) is in the input string.
3+
UNSUPPORTED: system-windows
14
RUN: printf '\201rforpl\377' > %t.profraw
25
RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
36
// We should fail on this because the binary IDs is not a multiple of 8 bytes.

llvm/test/tools/llvm-profdata/raw-32-bits-be.test

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
2+
// whenever \12 (LF) is in the input string.
3+
UNSUPPORTED: system-windows
14
// Header
25
RUN: printf '\377lprofR\201' > %t
36
RUN: printf '\0\0\0\0\0\0\0\12' >> %t

llvm/test/tools/llvm-profdata/raw-32-bits-le.test

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
2+
// whenever \12 (LF) is in the input string.
3+
UNSUPPORTED: system-windows
14
RUN: printf '\201Rforpl\377' > %t
25
RUN: printf '\12\0\0\0\0\0\0\0' >> %t
36
RUN: printf '\0\0\0\0\0\0\0\0' >> %t

llvm/test/tools/llvm-profdata/raw-64-bits-be.test

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
2+
// whenever \12 (LF) is in the input string.
3+
UNSUPPORTED: system-windows
14
RUN: printf '\377lprofr\201' > %t
25
RUN: printf '\0\0\0\0\0\0\0\12' >> %t
36
RUN: printf '\0\0\0\0\0\0\0\0' >> %t

llvm/test/tools/llvm-profdata/raw-64-bits-le.test

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
2+
// whenever \12 (LF) is in the input string.
3+
UNSUPPORTED: system-windows
14
RUN: printf '\201rforpl\377' > %t
25
RUN: printf '\12\0\0\0\0\0\0\0' >> %t
36
RUN: printf '\0\0\0\0\0\0\0\0' >> %t

llvm/test/tools/llvm-profdata/raw-two-profiles.test

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// gnuwin32 printf does not work for this test because it will print \15 (CR)
2+
// whenever \12 (LF) is in the input string.
3+
UNSUPPORTED: system-windows
14
RUN: printf '\201rforpl\377' > %t-foo.profraw
25
RUN: printf '\12\0\0\0\0\0\0\0' >> %t-foo.profraw
36
RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw

0 commit comments

Comments
 (0)