- // --- Run Salome without GUI
-
- setenv("SALOME_trace", "file:./traceUnitTest.log", 1); // 1: overwrite
-
- system("runSalome -t &");
-
- // --- Wait till SALOMEDS server is launched
-
- char hostname[511];
- int size;
- gethostname(hostname, size);
- char* chr_port = getenv("SALOMEDS_UNITTESTS_PORT");
- std::string port;
- if(chr_port) port = chr_port;
- if(port.empty()) port = "2810";
- std::string cfg_file = std::string(getenv("HOME"))+"/.omniORB_"+std::string(hostname)+"_"+port+".cfg";
- setenv("OMNIORB_CONFIG", cfg_file.c_str(), 1);
-