enable NSURLConnection tests with a local web server on Windows

This commit is contained in:
Sergei Golovin 2024-03-06 17:43:48 +04:00
parent fc07538462
commit b60f950630
7 changed files with 0 additions and 112 deletions

View file

@ -57,18 +57,6 @@ int main(int argc, char **argv, char **env)
NSURLRequest *req;
Delegate *del;
/* The following test cases depend on the GSInetServerStream
* class which is completely broken on Windows.
*
* See: https://github.com/gnustep/libs-base/issues/266
*
* We will mark the test cases as hopeful on Windows.
*/
#if defined(_WIN32)
NSLog(@"Marking local web server tests as hopeful because GSInetServerStream is broken on Windows");
testHopeful = YES;
#endif
duration = 0.0;
timing = 0.1;
urlString = @"http://localhost:19750";
@ -105,9 +93,5 @@ int main(int argc, char **argv, char **env)
[arp release]; arp = nil;
#if defined(_WIN32)
testHopeful = NO;
#endif
return 0;
}

View file

@ -30,18 +30,6 @@ int main(int argc, char **argv, char **env)
NSURLConnectionTest *testCase;
BOOL debug = NO;
/* The following test cases depend on the GSInetServerStream
* class which is completely broken on Windows.
*
* See: https://github.com/gnustep/libs-base/issues/266
*
* We will mark the test cases as hopeful on Windows.
*/
#if defined(_WIN32)
NSLog(@"Marking local web server tests as hopeful because GSInetServerStream is broken on Windows");
testHopeful = YES;
#endif
testClass = [bundle principalClass]; // NSURLConnectionTest
// create a shared TestWebServer instance for performance
@ -142,10 +130,6 @@ int main(int argc, char **argv, char **env)
format: @"can't load bundle TestConnection"];
}
#if defined(_WIN32)
testHopeful = NO;
#endif
DESTROY(arp);
return 0;

View file

@ -16,18 +16,6 @@ int main(int argc, char **argv, char **env)
BOOL loaded;
NSString *helperPath;
/* The following test cases depend on the GSInetServerStream
* class which is completely broken on Windows.
*
* See: https://github.com/gnustep/libs-base/issues/266
*
* We will mark the test cases as hopeful on Windows.
*/
#if defined(_WIN32)
NSLog(@"Marking local web server tests as hopeful because GSInetServerStream is broken on Windows");
testHopeful = YES;
#endif
// load the test suite's classes
fm = [NSFileManager defaultManager];
helperPath = [[fm currentDirectoryPath]
@ -154,9 +142,5 @@ int main(int argc, char **argv, char **env)
DESTROY(arp);
#if defined(_WIN32)
testHopeful = NO;
#endif
return 0;
}

View file

@ -14,18 +14,6 @@ int main(int argc, char **argv, char **env)
BOOL loaded;
NSString *helperPath;
/* The following test cases depend on the GSInetServerStream
* class which is completely broken on Windows.
*
* See: https://github.com/gnustep/libs-base/issues/266
*
* We will mark the test cases as hopeful on Windows.
*/
#if defined(_WIN32)
NSLog(@"Marking local web server tests as hopeful because GSInetServerStream is broken on Windows");
testHopeful = YES;
#endif
// load the test suite's classes
fm = [NSFileManager defaultManager];
helperPath = [[fm currentDirectoryPath]
@ -175,10 +163,6 @@ int main(int argc, char **argv, char **env)
format: @"can't load bundle TestConnection"];
}
#if defined(_WIN32)
testHopeful = NO;
#endif
DESTROY(arp);
return 0;

View file

@ -15,18 +15,6 @@ int main(int argc, char **argv, char **env)
BOOL loaded;
NSString *helperPath;
/* The following test cases depend on the GSInetServerStream
* class which is completely broken on Windows.
*
* See: https://github.com/gnustep/libs-base/issues/266
*
* We will mark the test cases as hopeful on Windows.
*/
#if defined(_WIN32)
NSLog(@"Marking local web server tests as hopeful because GSInetServerStream is broken on Windows");
testHopeful = YES;
#endif
// load the test suite's classes
fm = [NSFileManager defaultManager];
helperPath = [[fm currentDirectoryPath]
@ -192,10 +180,6 @@ int main(int argc, char **argv, char **env)
format: @"can't load bundle TestConnection"];
}
#if defined(_WIN32)
testHopeful = NO;
#endif
DESTROY(arp);
return 0;

View file

@ -14,18 +14,6 @@ int main(int argc, char **argv, char **env)
BOOL loaded;
NSString *helperPath;
/* The following test cases depend on the GSInetServerStream
* class which is completely broken on Windows.
*
* See: https://github.com/gnustep/libs-base/issues/266
*
* We will mark the test cases as hopeful on Windows.
*/
#if defined(_WIN32)
NSLog(@"Marking local web server tests as hopeful because GSInetServerStream is broken on Windows");
testHopeful = YES;
#endif
// load the test suite's classes
fm = [NSFileManager defaultManager];
helperPath = [[fm currentDirectoryPath]
@ -77,10 +65,6 @@ int main(int argc, char **argv, char **env)
format: @"can't load bundle TestConnection"];
}
#if defined(_WIN32)
testHopeful = NO;
#endif
DESTROY(arp);
return 0;

View file

@ -14,18 +14,6 @@ int main(int argc, char **argv, char **env)
BOOL loaded;
NSString *helperPath;
/* The following test cases depend on the GSInetServerStream
* class which is completely broken on Windows.
*
* See: https://github.com/gnustep/libs-base/issues/266
*
* We will mark the test cases as hopeful on Windows.
*/
#if defined(_WIN32)
NSLog(@"Marking local web server tests as hopeful because GSInetServerStream is broken on Windows");
testHopeful = YES;
#endif
// load the test suite's classes
fm = [NSFileManager defaultManager];
helperPath = [[fm currentDirectoryPath]
@ -109,10 +97,6 @@ int main(int argc, char **argv, char **env)
format: @"can't load bundle TestConnection"];
}
#if defined(_WIN32)
testHopeful = NO;
#endif
DESTROY(arp);
return 0;