Skip to content

Commit

Permalink
Made TestCubeAttachLineScanTableFromIsd use the temp directory fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
acpaquette committed Feb 20, 2025
1 parent 836f6c5 commit 9650fc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions isis/tests/CubeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ TEST(CubeTest, TestCubeAttachSpiceFromIsd) {
EXPECT_PRED_FORMAT2(AssertQStringsEqual, cam->instrumentNameLong(), "Visual Imaging Subsystem Camera B");
}

TEST(CubeTest, TestCubeAttachLineScanTableFromIsd) {
TEST_F(TempTestingFiles, TestCubeAttachLineScanTableFromIsd) {
std::istringstream labelStrm(R"(
Object = IsisCube
Object = Core
Expand Down Expand Up @@ -786,9 +786,8 @@ TEST(CubeTest, TestCubeAttachLineScanTableFromIsd) {
Pvl label;
labelStrm >> label;

QTemporaryFile tempFile;
Cube testCube;
testCube.fromIsd(tempFile.fileName() + ".cub", label, isd, "rw");
testCube.fromIsd(tempDir.path() + "/test.cub", label, isd, "rw");

PvlGroup kernels = testCube.group("Kernels");

Expand Down

0 comments on commit 9650fc2

Please sign in to comment.