Fixtures/Source/MacUnitTestFixture/MacUnitTestFixtureTests.m [51:100]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- (void)testPossibleCrashingOfHostProcess
{
  if ([NSProcessInfo.processInfo.environment[@"TEST_FIXTURE_SHOULD_CRASH"] boolValue]) {
    NSLog(@"'TEST_FIXTURE_SHOULD_CRASH' is True, aborting");
    abort();
  }
}

- (void)testPossibleStallingOfHostProcess
{
  if ([NSProcessInfo.processInfo.environment[@"TEST_FIXTURE_SHOULD_STALL"] boolValue]) {
    NSLog(@"'TEST_FIXTURE_SHOULD_STALL' is True, stalling");
    sleep(INT_MAX);
  }
}

- (void)testWillAlwaysPass
{
  // do nothing
}

- (void)testWillAlwaysFail
{
  XCTFail(@"This always fails");
}

- (void)testAsyncExpectationPassing
{
  XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"Async expectation passed"];
  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
    sleep(1);
    [expectation fulfill];
  });

  [self waitForExpectations:@[expectation] timeout:2];
}

- (void)testAsyncExpectationFailing
{
  XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"Async expectation passed"];
  expectation.inverted = YES;
  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
    sleep(1);
    [expectation fulfill];
  });

  [self waitForExpectations:@[expectation] timeout:2];
}

@end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Fixtures/Source/iOSUnitTestFixture/iOSUnitTestFixtureTests.m [51:100]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- (void)testPossibleCrashingOfHostProcess
{
  if ([NSProcessInfo.processInfo.environment[@"TEST_FIXTURE_SHOULD_CRASH"] boolValue]) {
    NSLog(@"'TEST_FIXTURE_SHOULD_CRASH' is True, aborting");
    abort();
  }
}

- (void)testPossibleStallingOfHostProcess
{
  if ([NSProcessInfo.processInfo.environment[@"TEST_FIXTURE_SHOULD_STALL"] boolValue]) {
    NSLog(@"'TEST_FIXTURE_SHOULD_STALL' is True, stalling");
    sleep(INT_MAX);
  }
}

- (void)testWillAlwaysPass
{
  // do nothing
}

- (void)testWillAlwaysFail
{
  XCTFail(@"This always fails");
}

- (void)testAsyncExpectationPassing
{
  XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"Async expectation passed"];
  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
    sleep(1);
    [expectation fulfill];
  });

  [self waitForExpectations:@[expectation] timeout:2];
}

- (void)testAsyncExpectationFailing
{
  XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"Async expectation passed"];
  expectation.inverted = YES;
  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
    sleep(1);
    [expectation fulfill];
  });

  [self waitForExpectations:@[expectation] timeout:2];
}

@end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



