Kaydet (Commit) c0b1d1bf authored tarafından Michael Stahl's avatar Michael Stahl

cppunittester: make tracking down temp file leaks easier

Temp files created before first test method don't see LO_TESTNAME

Change-Id: Iff74abf574f5151980f463646f11c1b32ad0c241
üst 33cac6c6
......@@ -237,6 +237,9 @@ public:
#ifdef UNX
EyecatcherListener eye;
result.addListener(&eye);
// set this to track down files created before first test method
std::string lib(testlib.substr(testlib.rfind('/')+1));
setenv("LO_TESTNAME", lib.c_str(), true);
#endif
CppUnit::TestRunner runner;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment