aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Foundation/GTMScriptRunnerTest.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Foundation/GTMScriptRunnerTest.m b/Foundation/GTMScriptRunnerTest.m
index c8050f5..5f52e61 100644
--- a/Foundation/GTMScriptRunnerTest.m
+++ b/Foundation/GTMScriptRunnerTest.m
@@ -218,6 +218,11 @@
// Account for the shell level.
[currVars setObject:@"1" forKey:@"SHLVL"];
+ // Xcode inserts DYLD_FRAMEWORK_PATH and DYLD_LIBRARY_PATH when running XCTests,
+ // but that doesn't get passed on when running the script.
+ [currVars removeObjectForKey:@"DYLD_FRAMEWORK_PATH"];
+ [currVars removeObjectForKey:@"DYLD_LIBRARY_PATH"];
+
output = [sr run:@"/usr/bin/env | /usr/bin/sort" standardError:&error];
NSArray *lineArray = [output componentsSeparatedByString:@"\n"];
XCTAssertEqual([lineArray count], [currVars count],