Skip to content

Commit d29c7dd

Browse files
committed
Correct null device file name on Windows
1 parent 91364e1 commit d29c7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hls-test-utils/src/Test/Hls.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ silenceStderr action =
8080
h `hDuplicateTo'` stderr
8181
bracket_ action (hClose old) (old `hDuplicateTo'` stderr)
8282
where
83-
nullFile = if hostOS == Windows then "NUL" else "/dev/null"
83+
nullFile = if hostOS == Windows then "\\\\.\\NUL" else "/dev/null"
8484

8585
-- | Host a server, and run a test session on it
8686
-- Note: cwd will be shifted into @root@ in @Session a@

0 commit comments

Comments
 (0)