1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 20:27:22 +01:00

GUI unit tests should not connect to the update.fwbuilder.org web site to check for updates, we test for that specifically in a special uni test

This commit is contained in:
Vadim Kurland 2010-07-29 20:05:27 +00:00
parent c83b04f36b
commit 5efa16a76c
3 changed files with 15 additions and 5 deletions

View File

@ -37,12 +37,17 @@ FWWindowTest::FWWindowTest(QWidget *parent)
{
}
void FWWindowTest::initTestCase()
{
st->setCheckUpdates(true);
st->setBool("UI/NoStartTip", true);
}
void FWWindowTest::cleanupTestCase()
{
qDebug() << 1;
if (QFile::exists("/tmp/update_4.0.0"))
qDebug() << 2;
QFile::remove("/tmp/update_4.0.0");
qDebug() << "file /tmp/update_4.0.0 exists";
QFile::remove("/tmp/update_4.0.0");
}
void FWWindowTest::findMessageBox()

View File

@ -32,15 +32,18 @@
class FWWindowTest : public QMainWindow
{
Q_OBJECT
Q_OBJECT;
public:
FWWindowTest(QWidget *parent = 0);
public slots:
public slots:
void findMessageBox();
void findNoMessageBox();
void prepareMW();
private slots:
void initTestCase();
void cleanupTestCase();
void checkForUpgrade_1();
void checkForUpgrade_2();

View File

@ -48,6 +48,8 @@ int main( int argc, char** argv) \
app->setApplicationName(QLatin1String("Firewall Builder")); \
st = new FWBSettings(true); \
st->init(); \
st->setCheckUpdates(false); \
st->setBool("UI/NoStartTip", true); \
init(argv); \
wfl = new UserWorkflow(); \
string full_res_path = respath + FS_SEPARATOR + "resources.xml"; \