comparison ui/tests/nsstest.cpp @ 346:a54925d41056

Enable autoremove again This should have been only disabled locally
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 10 Apr 2014 11:15:23 +0200
parents 1e6d1eab8395
children 6b78a89c1e17
comparison
equal deleted inserted replaced
345:fe86c45755d8 346:a54925d41056
53 QFileDevice::ReadOwner | QFileDevice::WriteOwner)); 53 QFileDevice::ReadOwner | QFileDevice::WriteOwner));
54 QVERIFY(QFile::setPermissions(nssDir->path() + "/" +"key3.db", 54 QVERIFY(QFile::setPermissions(nssDir->path() + "/" +"key3.db",
55 QFileDevice::ReadOwner | QFileDevice::WriteOwner)); 55 QFileDevice::ReadOwner | QFileDevice::WriteOwner));
56 QVERIFY(QFile::setPermissions(nssDir->path() + "/" +"secmod.db", 56 QVERIFY(QFile::setPermissions(nssDir->path() + "/" +"secmod.db",
57 QFileDevice::ReadOwner | QFileDevice::WriteOwner)); 57 QFileDevice::ReadOwner | QFileDevice::WriteOwner));
58 nssDir->setAutoRemove(false); 58 // nssDir->setAutoRemove(false);
59 } 59 }
60 60
61 void NSSTest::initTestCase() { 61 void NSSTest::initTestCase() {
62 QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8")); /* use system default */ 62 QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8")); /* use system default */
63 63
72 setupTestDir(&tbNSSDir); 72 setupTestDir(&tbNSSDir);
73 73
74 validList = CertificateList(validListFile.fileName().toLocal8Bit().data()); 74 validList = CertificateList(validListFile.fileName().toLocal8Bit().data());
75 75
76 /* Create the profiles.ini `s set environment variables*/ 76 /* Create the profiles.ini `s set environment variables*/
77 fakeHome.setAutoRemove(false); 77 // fakeHome.setAutoRemove(false);
78 #ifndef WIN32 78 #ifndef WIN32
79 QVERIFY(!setenv ("HOME", fakeHome.path().toLocal8Bit().constData(), 1)); 79 QVERIFY(!setenv ("HOME", fakeHome.path().toLocal8Bit().constData(), 1));
80 fakeFirefoxDir = QDir(fakeHome.path() + "/.mozilla/firefox"); 80 fakeFirefoxDir = QDir(fakeHome.path() + "/.mozilla/firefox");
81 fakeThunderbirdDir = QDir(fakeHome.path() + "/.thunderbird"); 81 fakeThunderbirdDir = QDir(fakeHome.path() + "/.thunderbird");
82 #else 82 #else

http://wald.intevation.org/projects/trustbridge/