1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

For the sake of poor Xcode, stop after a single failure.

This commit is contained in:
Thomas Harte 2022-06-27 11:10:51 -04:00
parent ef40a81be2
commit 5cb0aebdf4

View File

@ -239,9 +239,9 @@ namespace {
options:0 options:0
error:nil]; error:nil];
int testNumber = 1; int testNumber = 0;
for(NSDictionary *test in tests) { for(NSDictionary *test in tests) {
NSLog(@"Test %d", testNumber); NSLog(@"Test index %d", testNumber);
++testNumber; ++testNumber;
// Apply state. // Apply state.
@ -304,6 +304,10 @@ namespace {
physical, physical,
foundPhysical); foundPhysical);
if(physical != foundPhysical) {
NSLog(@"Stopping after first failure");
return;
}
if(physical != physicalEnd) ++physical; if(physical != physicalEnd) ++physical;
} }
} }