Mercurial > trustbridge
comparison ui/tests/nsstest.cpp @ 326:ad28f6b60e6b
Fix nsstest build for windows
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 07 Apr 2014 14:50:08 +0000 |
parents | 2fd69803d219 |
children | 1e6d1eab8395 |
comparison
equal
deleted
inserted
replaced
325:c89bfb0e638e | 326:ad28f6b60e6b |
---|---|
70 #ifndef WIN32 | 70 #ifndef WIN32 |
71 QVERIFY(!setenv ("HOME", fakeHome.path().toLocal8Bit().constData(), 1)); | 71 QVERIFY(!setenv ("HOME", fakeHome.path().toLocal8Bit().constData(), 1)); |
72 fakeFirefoxDir = QDir(fakeHome.path() + "/.mozilla/firefox"); | 72 fakeFirefoxDir = QDir(fakeHome.path() + "/.mozilla/firefox"); |
73 fakeThunderbirdDir = QDir(fakeHome.path() + "/.thunderbird"); | 73 fakeThunderbirdDir = QDir(fakeHome.path() + "/.thunderbird"); |
74 #else | 74 #else |
75 QVERIFY(!setenv ("APPDATA", fakeHome.path().toLocal8Bit().constData(), 1)); | 75 { |
76 char buf[fakeHome.path().toLocal8Bit().size() + 9]; | |
77 snprintf(buf, fakeHome.path().toLocal8Bit().size() + 9, | |
78 "APPDATA=%s",fakeHome.path().toLocal8Bit().constData()); | |
79 QVERIFY(_putenv (buf) != -1); | |
80 } | |
76 fakeFirefoxDir = QDir(fakeHome.path() + "/Mozilla/firefox"); | 81 fakeFirefoxDir = QDir(fakeHome.path() + "/Mozilla/firefox"); |
77 fakeThunderbirdDir = QDir(fakeHome.path() + "/Thunderbird"); | 82 fakeThunderbirdDir = QDir(fakeHome.path() + "/Thunderbird"); |
78 #endif | 83 #endif |
79 QVERIFY(fakeFirefoxDir.mkpath(fakeFirefoxDir.path())); | 84 QVERIFY(fakeFirefoxDir.mkpath(fakeFirefoxDir.path())); |
80 QVERIFY(fakeThunderbirdDir.mkpath(fakeThunderbirdDir.path())); | 85 QVERIFY(fakeThunderbirdDir.mkpath(fakeThunderbirdDir.path())); |