Frameworks/AutoHyperlinks Framework/Source/StressTestMain.m
changeset 5949 334dc418b409
parent 5238 a4385bf575e4
equal deleted inserted replaced
5893:1e1382dbd844 5949:334dc418b409
     1 #import <SenTestingKit/SenTestingKit.h>
     1 #import <XCTest/XCTest.h>
     2 #import "StressTest.h"
     2 #import "StressTest.h"
     3 
     3 
     4 #include <sysexits.h>
     4 #include <sysexits.h>
     5 
     5 
     6 int main(int argc, char **argv) {
     6 int main(int argc, char **argv) {
    13 			return EX_USAGE;
    13 			return EX_USAGE;
    14 		}
    14 		}
    15 	}
    15 	}
    16 
    16 
    17 	@autoreleasepool {
    17 	@autoreleasepool {
    18 		StressTest *test = [[[StressTest alloc] initWithSelector:@selector(testStress)] autorelease];
    18 		StressTest *test = [[StressTest alloc] initWithSelector:@selector(testStress)];
    19 		SenTestRun *run = [[[SenTestRun alloc] initWithTest:test] autorelease];
    19 		SenTestRun *run = [[SenTestRun alloc] initWithTest:test];
    20 		
    20 		
    21 		NSDate *startDate, *endDate;
    21 		NSDate *startDate, *endDate;
    22 		
    22 		
    23 		startDate = [NSDate date];
    23 		startDate = [NSDate date];
    24 		[run start];
    24 		[run start];