Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (43 sloc) 1.071 kB
//
// TestProject_Library_OSXTests.m
// TestProject-Library-OSXTests
//
// Created by Fred Potter on 4/10/13.
// Copyright (c) 2013 Fred Potter. All rights reserved.
//
#import "TestProject_Library_OSXTests.h"
#import <execinfo.h>
@implementation TestProject_Library_OSXTests
- (void)setUp
{
[super setUp];
// Set-up code here.
}
- (void)tearDown
{
// Tear-down code here.
[super tearDown];
}
- (void)testWillPass {
sleep(0.1);
printf("\nWill Pass!!!!!!!!!!\n");
STAssertEquals(1, 1, @"Equal!");
sleep(0.1);
}
- (void)testWillFail {
sleep(0.1);
printf("\nWill fail!!!!!!!!!!\n");
STAssertEquals(1, 2, @"Not Equal!");
sleep(0.1);
}
- (void)testOutput {
// Generate output in all the different ways we know of...
fprintf(stdout, "stdout\n");
fprintf(stderr, "stderr\n");
NSLog(@"NSLog");
// We've seen backtrace_symbols_fd follow a different output path
void *exceptionSymbols[256];
int numSymbols = backtrace(exceptionSymbols, 256);
backtrace_symbols_fd(exceptionSymbols, numSymbols, STDERR_FILENO);
}
@end
Jump to Line
Something went wrong with that request. Please try again.