Skip to content

Commit 8b72ee0

Browse files
committed
TestFoundation: convert boolean check on Windows
`FALSE` and `TRUE` were converted to proper booleans and do not get imported as custom names. Update the tests.
1 parent 326c78f commit 8b72ee0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestFoundation/TestFileHandle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ class TestFileHandle : XCTestCase {
9999
#if os(Windows)
100100
var hReadPipe: HANDLE? = INVALID_HANDLE_VALUE
101101
var hWritePipe: HANDLE? = INVALID_HANDLE_VALUE
102-
if CreatePipe(&hReadPipe, &hWritePipe, nil, 0) == FALSE {
102+
if !CreatePipe(&hReadPipe, &hWritePipe, nil, 0) {
103103
assert(false)
104104
}
105105

106-
if CloseHandle(hWritePipe) == FALSE {
106+
if !CloseHandle(hWritePipe) {
107107
assert(false)
108108
}
109109

0 commit comments

Comments
 (0)