Skip to content

Commit 9009fb8

Browse files
authored
Fix Test Breakage on WSL (#8263)
`tools/clang/test/DXC/highlight-range-null-byte.test` was failing on WSL due to `python` not being on the path. Replace the command with an equivalent call to `printf`
1 parent 9485f9e commit 9009fb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Regression test: dxc crashes on HLSL with embedded null bytes due to
22
// out-of-bounds access in highlightRange() (TextDiagnostic.cpp).
33

4-
// RUN: python -c "import sys; sys.stdout.buffer.write(b'f(){a b int4\x00(1}')" > %t.hlsl
4+
// RUN: printf 'f(){a b int4\0(1}' > %t.hlsl
55
// RUN: not %dxc /T ps_6_0 %t.hlsl 2>&1 | FileCheck %s
66

77
// CHECK: error: HLSL requires a type specifier for all declarations

0 commit comments

Comments
 (0)