Git storage test: need to instantiate the window title updater class

Otherwise calling the static function can cause a crash in
mark_divelist_changed()

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-09-18 12:05:07 -07:00
parent 5ba74130c0
commit ade2067155

View file

@ -4,6 +4,7 @@
#include "file.h"
#include "git2.h"
#include "prefs-macros.h"
#include "windowtitleupdate.h"
#include <QDir>
#include <QTextStream>
#include <QNetworkProxy>
@ -54,6 +55,7 @@ void TestGitStorage::testSetup()
QString localCacheDir(get_local_dir("https://cloud.subsurface-divelog.org/git/ssrftest@hohndel.org", "ssrftest@hohndel.org"));
QDir localCacheDirectory(localCacheDir);
QCOMPARE(localCacheDirectory.removeRecursively(), true);
WindowTitleUpdate *wtu = new WindowTitleUpdate();
}
void TestGitStorage::testGitStorageLocal()