Verify that the path is valid and writable
Summary:
This prevents strange errors when trying to run the test
when the partition that holds /tmp is full.
Reviewers: dfaure
Subscribers: Frameworks
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D9819