int main(int argc, char** argv) { const char * envTmpDir = getenv ("PEGASUS_TMP"); if (envTmpDir == 0 || strlen(envTmpDir) == 0) { tmpDir = strdup("."); } else tmpDir = strdup(envTmpDir); try { _Test01(); _Test02(); free(tmpDir); } catch (Exception& e) { cerr << "Error: " << e.getMessage() << endl; free(tmpDir); exit(1); } cout << argv[0] << " +++++ passed all tests" << endl; return 0; }
int main(int argc, char** argv) { tmpDir = getenv ("PEGASUS_TMP"); if (tmpDir == NULL) { tmpDir = "."; } try { _Test01(); _Test02(); } catch (Exception& e) { cerr << "Error: " << e.getMessage() << endl; exit(1); } cout << argv[0] << " +++++ passed all tests" << endl; return 0; }