Remove all the no longer necessary code that aborts read of first V2 file

This was a poorly implemented hack when we executed the reverse geo lookup
in the main thread and opening a V2 file could take a very long time. We
need to do the "Welcome" message quite differently.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-16 12:52:39 -07:00
parent bd11988f74
commit ccc9d80015
9 changed files with 4 additions and 75 deletions

View file

@ -6,8 +6,7 @@ void TestParse::testParseCSV()
{
// some basic file parsing tests
//
// even with the V2 question not shown, CSV import should work
v2_question_shown = false;
// CSV import should work
verbose = 1;
QCOMPARE(parse_manual_file(SUBSURFACE_SOURCE "/dives/test41.csv",
0, // tab separator
@ -21,25 +20,16 @@ void TestParse::testParseCSV()
void TestParse::testParseV2NoQuestion()
{
// but parsing of a V2 file should fail
v2_question_shown = false;
QCOMPARE(parse_file(SUBSURFACE_SOURCE "/dives/test40.xml"), -1);
// parsing of a V2 file should work
QCOMPARE(parse_file(SUBSURFACE_SOURCE "/dives/test40.xml"), 0);
}
void TestParse::testParseV3()
{
// while parsing of a V3 files should succeed
v2_question_shown = false;
// parsing of a V3 files should succeed
QCOMPARE(parse_file(SUBSURFACE_SOURCE "/dives/test42.xml"), 0);
}
void TestParse::testParseV2YesQuestion()
{
// once we claim to have shown the V2 question, parsing the V2 file should work as well
v2_question_shown = true;
QCOMPARE(parse_file(SUBSURFACE_SOURCE "/dives/test40.xml"), 0);
}
void TestParse::testParseCompareOutput()
{
QCOMPARE(save_dives("./testout.ssrf"), 0);