extern void main(void) { OSStatus err; OSStatus junk; err = InitOpenTransportInContext(kInitOTForApplicationMask, NULL); if (err == noErr) { err = OTRegisterAsClientInContext("\pOTClassicContextTest", DummyNotifier, NULL); if (err == noErr) { err = TransferTest(); if (err == noErr) { err = MemTest(); } if (err == noErr) { err = OpenTest(); } if (err == noErr) { err = TaskTest(); } if (err == noErr) { err = StreamTest(); } junk = OTUnregisterAsClientInContext(NULL); assert(junk == noErr); } CloseOpenTransportInContext(NULL); }
void all_tests (char *dir) { init_test(dir); void StatTest(void); StatTest(); void FsTest(void); FsTest(); void OpenTest(void); OpenTest(); #if __linux__ void OpenatTest(void); OpenatTest(); #endif void RwTest(void); RwTest(); void DirTest(void); DirTest(); cleanup(); }