Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 6f60d28

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents 671ddf3 + 3126aa5 commit 6f60d28

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
# 3.0.7
2+
3+
* Resolved bug in which a failed unit test on Xcode 8 betas would cause arc unit to hang.
4+
15
# 3.0.6
26

3-
* Workaround for bug in Xcode 8 betas 1 and 2 that cause `arc unit`.
7+
* Workaround for bug in Xcode 8 betas 1 and 2 that cause `arc unit` to hang.
48

59
# 3.0.5
610

engine/XcodeUnitTestEngine.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private function xcodeMajorVersion() {
114114
return null;
115115
}
116116

117-
public function execFutureEndOnLine($future, $line) {
117+
public function execFutureEndOnLine($future, $stdoutline, $stderrline) {
118118
$wait = $future->getDefaultWait();
119119
$hasSeenLine = false;
120120
do {
@@ -130,7 +130,8 @@ public function execFutureEndOnLine($future, $line) {
130130
}
131131

132132
$pipes = $future->read();
133-
if (!$hasSeenLine && strpos($pipes[0], $line) !== false) {
133+
if (!$hasSeenLine && (strpos($pipes[0], $stdoutline) !== false
134+
|| strpos($pipes[1], $stderrline) !== false)) {
134135
$hasSeenLine = true;
135136

136137
} else if ($hasSeenLine && empty($pipes[0])) {
@@ -175,7 +176,10 @@ public function run() {
175176
$this->xcodebuildBinary, implode(' ', $xcodeargs));
176177

177178
list($builderror, $xcbuild_stdout, $xcbuild_stderr) =
178-
$this->execFutureEndOnLine($future, "** TEST EXECUTE SUCCEEDED **");
179+
$this->execFutureEndOnLine($future,
180+
"** TEST EXECUTE SUCCEEDED **",
181+
"** TEST EXECUTE FAILED **"
182+
);
179183
}
180184

181185
} else {

0 commit comments

Comments
 (0)