increase timeout for slow machines

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32665 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-03-21 09:53:01 +00:00
parent dbc38567b6
commit 7d9c3baf64

View file

@ -12,20 +12,20 @@ int main()
NSBundle *bundle;
NSString *bundlePath = [[NSFileManager defaultManager] currentDirectoryPath];
bundlePath = [bundlePath stringByAppendingPathComponent: @"Resources"];
bundlePath = [NSBundle pathForResource:@"TestConnection"
ofType:@"bundle"
inDirectory:bundlePath];
bundle = [NSBundle bundleWithPath:bundlePath];
bundlePath = [NSBundle pathForResource: @"TestConnection"
ofType: @"bundle"
inDirectory: bundlePath];
bundle = [NSBundle bundleWithPath: bundlePath];
PASS([bundle load],"We can load the test bundle");
{
/* this should probably be rewritten to uh return a bool */
NS_DURING
NSDate *date;
NSRunLoop *run = [NSRunLoop currentRunLoop];
[NSClassFromString(@"Tester") performSelector:@selector(startup)];
[NSClassFromString(@"Tester") performSelector: @selector(startup)];
date = [NSDate dateWithTimeIntervalSinceNow:1];
[run runUntilDate:date];
date = [NSDate dateWithTimeIntervalSinceNow: 3.0];
[run runUntilDate: date];
PASS(1, "NSConnection can do a simple connection");
NS_HANDLER
PASS(0, "NSConnection can do a simple connection");