From 04a540b219cace3f39c7130daf2014955d79224a Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Thu, 11 Jul 2013 17:00:19 +0000 Subject: Fix for GTMScriptRunner: run:standardError: deadlocks with full error pipe - (https://code.google.com/p/google-toolbox-for-mac/issues/detail?id=25) by applying patch from dlreese (https://code.google.com/p/google-toolbox-for-mac/issues/detail?id=25#c3) DELTA=150 (91 added, 58 deleted, 1 changed) --- Foundation/GTMScriptRunnerTest.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Foundation/GTMScriptRunnerTest.m') diff --git a/Foundation/GTMScriptRunnerTest.m b/Foundation/GTMScriptRunnerTest.m index f13fe6c..07928c2 100644 --- a/Foundation/GTMScriptRunnerTest.m +++ b/Foundation/GTMScriptRunnerTest.m @@ -407,24 +407,19 @@ output = [sr run:cmd standardError:&err]; STAssertEquals([output length], (NSUInteger)(512 + 512*200), nil); STAssertEquals([err length], (NSUInteger)512, nil); -#if 0 - // Not fixed yet + cmd = [NSString stringWithFormat:GENERATOR_FORMAT_STR, @"'b1', 'e200'"]; STAssertNotNil(cmd, nil); output = [sr run:cmd standardError:&err]; STAssertEquals([output length], (NSUInteger)512, nil); STAssertEquals([err length], (NSUInteger)(512 + 512*200), nil); -#endif // Now send a large amount down both to make sure we spool it all in. -#if 0 - // Not fixed yet cmd = [NSString stringWithFormat:GENERATOR_FORMAT_STR, @"'b200'"]; STAssertNotNil(cmd, nil); output = [sr run:cmd standardError:&err]; STAssertEquals([output length], (NSUInteger)(512*200), nil); STAssertEquals([err length], (NSUInteger)(512*200), nil); -#endif } -- cgit v1.2.3