summaryrefslogtreecommitdiffstats
path: root/tests/testparse.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-16 12:52:39 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-16 14:41:56 -0700
commitccc9d800153ad11d8a2b54dc75fe8aefb5650dd3 (patch)
tree31a3638cd0885515709ab2aa55a3499746a1d2a8 /tests/testparse.cpp
parentbd11988f74d2fcc7873df691e06a1279d7fd3228 (diff)
downloadsubsurface-ccc9d800153ad11d8a2b54dc75fe8aefb5650dd3.tar.gz
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>
Diffstat (limited to 'tests/testparse.cpp')
-rw-r--r--tests/testparse.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/testparse.cpp b/tests/testparse.cpp
index e5abbaa6a..7b6efa104 100644
--- a/tests/testparse.cpp
+++ b/tests/testparse.cpp
@@ -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);