xctest sometimes exits with -1
xctest sometimes exits with -1
- Subject: xctest sometimes exits with -1
- From: Chris Ridd <email@hidden>
- Date: Wed, 12 Mar 2014 07:57:57 +0000
Hi,
I've just migrated an OS X project from using the old SenTestCase to the shiny new XCTest (Xcode 5.1). The test cases are executing correctly, and passing. I'm not making any changes to the code or tests at this point, just running and re-running the tests.
However, sometimes the entire xctest process (test harness) exits with -1, and Xcode considers the tests to have failed (red error icon). Here's the log transcript:
Test Suite 'All tests' started at 2014-03-12 07:38:00 +0000
Test Suite 'EpubTests.xctest' started at 2014-03-12 07:38:00 +0000
Test Suite 'EpubTests' started at 2014-03-12 07:38:00 +0000
[ test cases started + passed ]
Test Suite 'EpubTests' finished at 2014-03-12 07:38:02 +0000.
Executed 30 tests, with 0 failures (0 unexpected) in 1.709 (1.715) seconds
Test Suite 'EpubTests.xctest' finished at 2014-03-12 07:38:02 +0000.
Executed 30 tests, with 0 failures (0 unexpected) in 1.709 (1.716) seconds
Test Suite 'All tests' finished at 2014-03-12 07:38:02 +0000.
Executed 30 tests, with 0 failures (0 unexpected) in 1.709 (1.718) seconds
Test target EpubTests encountered an error (Test process exited with code -1)
When xctest exits with 0, Xcode considers the tests to have passed. The log transcript is exactly the same, except the last line ("encountered an error") is not present.
Doing a build clean doesn't help. There's nothing different in system.log for the -1/0 cases.
The sources for xctest are not available at opensource.apple.com.
Does anyone have any suggestions on what the exit code might mean, or where to start looking to solve this?
Thanks,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden