GHUnit test app freezes without errors or crashes #46

evanlooij opened this Issue May 3, 2011 · 2 comments


None yet

3 participants


I'm running GHUnit 0.4.28 in Xcode 4.0.2 Build 4A2002a. The test compiles and runs fine, but when I press the 'Run' button, it freezes. Just freezes, no errors in the Consoles, no crash, nothing. The status line reads: "Running 0.002s (0.000s in test time) 0/1 (0 failures)" and that is where it stays (I have a screenshot, but it seems as though I can't upload here).

The test I'm running is the following:

  • (void)testManagedObjectModelWithName { NSError *error = nil; NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"BookManager" withExtension:@"momd"]; GHAssertTrue([modelURL checkResourceIsReachableAndReturnError:&error], @"Expected valid model at url %@", [modelURL absoluteString]); }

I'm seeing a similar thing too, with the MacOS test runner. I'm using the download.

This happens only when I run a single test (if I run the whole suite, then all tests pass)

Strangely, if I add a new dummy test method to the same class:

-(void)testMeep {}

... and then run the problem test (only the problem test - not the new testMeep) then it's OK.

Why would adding a dummy test method cause a test to start working? And why would removing that dummy method cause another test to freeze?


See issue 64 for a patch which works for me.


@x2on x2on closed this Mar 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment