From 8b72ee06e2f7c5ade56304f1522bfcd995fd198d Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 2 Feb 2020 18:35:45 -0800 Subject: [PATCH] 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. --- TestFoundation/TestFileHandle.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TestFoundation/TestFileHandle.swift b/TestFoundation/TestFileHandle.swift index 9932d3a075..6fcba1d51e 100644 --- a/TestFoundation/TestFileHandle.swift +++ b/TestFoundation/TestFileHandle.swift @@ -99,11 +99,11 @@ class TestFileHandle : XCTestCase { #if os(Windows) var hReadPipe: HANDLE? = INVALID_HANDLE_VALUE var hWritePipe: HANDLE? = INVALID_HANDLE_VALUE - if CreatePipe(&hReadPipe, &hWritePipe, nil, 0) == FALSE { + if !CreatePipe(&hReadPipe, &hWritePipe, nil, 0) { assert(false) } - if CloseHandle(hWritePipe) == FALSE { + if !CloseHandle(hWritePipe) { assert(false) }