diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-03-24 11:47:48 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-03-24 11:47:48 -0700 |
commit | 01fb69e198b3dfdccd3a0de5a3f12973d7811dc0 (patch) | |
tree | 6a8f9cbfb45993b82336f1ea10158cdfdc4ab061 | |
parent | 1c8c6f95512988b66442341e35beda0377b7d7c3 (diff) | |
download | subsurface-01fb69e198b3dfdccd3a0de5a3f12973d7811dc0.tar.gz |
tests: fix incorrect relative path namesv5.0.0
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | tests/testprofile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testprofile.cpp b/tests/testprofile.cpp index 782451780..cd9d51f0c 100644 --- a/tests/testprofile.cpp +++ b/tests/testprofile.cpp @@ -17,9 +17,9 @@ void TestProfile::testProfileExport() { prefs.planner_deco_mode = BUEHLMANN; - parse_file("../dives/abitofeverything.ssrf", &dive_table, &trip_table, &dive_site_table, &device_table, &filter_preset_table); + parse_file(SUBSURFACE_TEST_DATA "/dives/abitofeverything.ssrf", &dive_table, &trip_table, &dive_site_table, &device_table, &filter_preset_table); save_profiledata("exportprofile.csv", false); - QFile org("../dives/exportprofilereference.csv"); + QFile org(SUBSURFACE_TEST_DATA "/dives/exportprofilereference.csv"); QCOMPARE(org.open(QFile::ReadOnly), true); QFile out("exportprofile.csv"); QCOMPARE(out.open(QFile::ReadOnly), true); @@ -33,9 +33,9 @@ void TestProfile::testProfileExport() void TestProfile::testProfileExportVPMB() { prefs.planner_deco_mode = VPMB; - parse_file("../dives/abitofeverything.ssrf", &dive_table, &trip_table, &dive_site_table, &device_table, &filter_preset_table); + parse_file(SUBSURFACE_TEST_DATA "/dives/abitofeverything.ssrf", &dive_table, &trip_table, &dive_site_table, &device_table, &filter_preset_table); save_profiledata("exportprofileVPMB.csv", false); - QFile org("../dives/exportprofilereferenceVPMB.csv"); + QFile org(SUBSURFACE_TEST_DATA "/dives/exportprofilereferenceVPMB.csv"); QCOMPARE(org.open(QFile::ReadOnly), true); QFile out("exportprofileVPMB.csv"); QCOMPARE(out.open(QFile::ReadOnly), true); |