Revision 0c7ce8d...
Go back to digest for 25th March 2012Optimization in KDE Base
Frank Reininghaus committed changes in [kdelibs/KDE/4.8] kdecore/tests/ktimezonestest_p.h:
Clean up ktimezonedrc properly after each unit test
ktimezonestest_p.h already did try to clean up the config after testing,
but the folder to be removed was hardcoded (~/.kde-unit-test/share).
This does work for ktimezonestest, but not for ktimezonewidget_unittest.
That test uses the same private header, but does not change KDEHOME to
~/.kde-unit-test, such that the user's normal config was modified by the
test, and the changes persisted even after the test. This then caused
applications like, e.g., Dolphin to output lots of unwanted error
messages at runtime.
This commit changes that by determining the full path of ktimezonedrc at
runtime and deleting that file.
File Changes
Modified 1 files
- kdecore/tests/ktimezonestest_p.h
1 files changed in total