NSURLSession: mark broken test as hopeful on Windows

This commit is contained in:
Frederik Seiffert 2023-02-16 16:04:10 +01:00 committed by Frederik Seiffert
parent 72b1233c2a
commit 1835f3f549

View file

@ -90,6 +90,11 @@ int main()
NSString *params;
MyDelegate *object;
#if defined(_WIN32)
NSLog(@"Marking nonexistant host test as hopeful on Windows as it seems to be broken");
testHopeful = YES;
#endif
object = AUTORELEASE([MyDelegate new]);
mainQueue = [NSOperationQueue mainQueue];
defaultConfigObject = [NSURLSessionConfiguration defaultSessionConfiguration];
@ -126,6 +131,10 @@ int main()
PASS([object->taskError code] == NSURLErrorCannotConnectToHost,
"unable to connect to host")
#if defined(_WIN32)
testHopeful = NO;
#endif
#endif
END_SET("NSURLSession test01")
return 0;