diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-10-14 23:32:05 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-10-15 00:04:33 +0200 |
commit | c0b1d1bf5701d5f94b618f70da8e863d32d97ab4 (patch) | |
tree | 9828b1a5e22cf4a7db46133a25ce40839829a8ec /sal/cppunittester | |
parent | sc: fix temp file leaks in ucalc Test (diff) | |
download | core-c0b1d1bf5701d5f94b618f70da8e863d32d97ab4.tar.gz core-c0b1d1bf5701d5f94b618f70da8e863d32d97ab4.zip |
cppunittester: make tracking down temp file leaks easier
Temp files created before first test method don't see LO_TESTNAME
Change-Id: Iff74abf574f5151980f463646f11c1b32ad0c241
Diffstat (limited to 'sal/cppunittester')
-rw-r--r-- | sal/cppunittester/cppunittester.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx index 51bc5c68a06e..148eed0e1b51 100644 --- a/sal/cppunittester/cppunittester.cxx +++ b/sal/cppunittester/cppunittester.cxx @@ -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; |