mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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;
|
NSString *params;
|
||||||
MyDelegate *object;
|
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]);
|
object = AUTORELEASE([MyDelegate new]);
|
||||||
mainQueue = [NSOperationQueue mainQueue];
|
mainQueue = [NSOperationQueue mainQueue];
|
||||||
defaultConfigObject = [NSURLSessionConfiguration defaultSessionConfiguration];
|
defaultConfigObject = [NSURLSessionConfiguration defaultSessionConfiguration];
|
||||||
|
@ -126,6 +131,10 @@ int main()
|
||||||
PASS([object->taskError code] == NSURLErrorCannotConnectToHost,
|
PASS([object->taskError code] == NSURLErrorCannotConnectToHost,
|
||||||
"unable to connect to host")
|
"unable to connect to host")
|
||||||
|
|
||||||
|
#if defined(_WIN32)
|
||||||
|
testHopeful = NO;
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
END_SET("NSURLSession test01")
|
END_SET("NSURLSession test01")
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue