From 9650fc2003e30aa7ca3fe4b1b6c8964e07e8543f Mon Sep 17 00:00:00 2001 From: Adam Paquette Date: Thu, 20 Feb 2025 01:11:37 +0000 Subject: [PATCH] Made TestCubeAttachLineScanTableFromIsd use the temp directory fixture --- isis/tests/CubeTests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/isis/tests/CubeTests.cpp b/isis/tests/CubeTests.cpp index 616a7c49e8..538fcae47b 100644 --- a/isis/tests/CubeTests.cpp +++ b/isis/tests/CubeTests.cpp @@ -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 @@ -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");