Skip to content

Commit 6e1d53d

Browse files
committed
NSURLSession: mark broken test as hopeful on Windows
1 parent 792b027 commit 6e1d53d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tests/base/NSURLSession/test01.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ int main()
9090
NSString *params;
9191
MyDelegate *object;
9292

93+
#if defined(_WIN32)
94+
NSLog(@"Marking nonexistant host test as hopeful on Windows as it seems to be broken");
95+
testHopeful = YES;
96+
#endif
97+
9398
object = AUTORELEASE([MyDelegate new]);
9499
mainQueue = [NSOperationQueue mainQueue];
95100
defaultConfigObject = [NSURLSessionConfiguration defaultSessionConfiguration];
@@ -126,6 +131,10 @@ int main()
126131
PASS([object->taskError code] == NSURLErrorCannotConnectToHost,
127132
"unable to connect to host")
128133

134+
#if defined(_WIN32)
135+
testHopeful = NO;
136+
#endif
137+
129138
#endif
130139
END_SET("NSURLSession test01")
131140
return 0;

0 commit comments

Comments
 (0)