mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
NSURLSession: mark broken test as hopeful on Windows
This commit is contained in:
parent
72b1233c2a
commit
1835f3f549
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue