i'm not sure if testing that setenv("HOME") changes the result is really the right thing to do. I'd say that just checking that it returns something sane, and that QDir::exists says the path exists is probably good enough