Skip to content
Commit 0c7ce8d9 authored by Frank Reininghaus's avatar Frank Reininghaus
Browse files

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.
BUG:295383
parent 3a211376
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