Re: xctest sometimes exits with -1
Re: xctest sometimes exits with -1
- Subject: Re: xctest sometimes exits with -1
- From: Alexander von Below <email@hidden>
- Date: Wed, 12 Mar 2014 09:14:42 +0100
Hi Chris,
I have had that problem when the project was created with an Xcode version directly in /Applications, and then the tests were run with an Xcode version in, say, /Applications/Developer Preview
The radar is filed, to me it looks like Xcode assumes the simulator to be at some location where it isn't.
Hope that helps in any way, shape or form
Alex
Am 12.03.2014 um 08:57 schrieb Chris Ridd <email@hidden>:
> 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
_______________________________________________
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