Skip to content

Commit

Permalink
Fixed error introduced into OCUnit integration from multiple reporter…
Browse files Browse the repository at this point in the history
…s merge.
  • Loading branch information
Adam Milligan committed Dec 28, 2011
1 parent c7cd4ae commit 22465cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/CDRFunctions.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void CDRDefineGlobalBeforeAndAfterEachBlocks() {
return reporterClasses;
}

NSArray *CDRReportersFromEnv(const char*defaultReporterClassName) {
NSArray *CDRReportersFromEnv(const char *defaultReporterClassName) {
NSArray *reporterClasses = CDRReporterClassesFromEnv(defaultReporterClassName);

NSMutableArray *reporters = [NSMutableArray arrayWithCapacity:[reporterClasses count]];
Expand Down
2 changes: 1 addition & 1 deletion Source/CDROTestRunner.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void CDRRunTests(id self, SEL _cmd, id ignored) {
exit(-999);
}

int result = runSpecsWithCustomExampleReporters(reporters);
exitStatus |= runSpecsWithCustomExampleReporters(reporters);

// otest always returns 0 as its exit code even if any test fails;
// we need to forcibly exit with correct exit code to make CI happy.
Expand Down

0 comments on commit 22465cc

Please sign in to comment.