Permalink
Browse files

Fixed error introduced into OCUnit integration from multiple reporter…

…s merge.
  • Loading branch information...
1 parent c7cd4ae commit 22465cccc9f05adeb02271b1fa96ad1c70c83b29 Adam Milligan committed Dec 28, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 Source/CDRFunctions.m
  2. +1 −1 Source/CDROTestRunner.m
@@ -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]];
@@ -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.

0 comments on commit 22465cc

Please sign in to comment.