Unverified Commit 936293c8 authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by GitHub
Browse files

Gtest fixes (#4382)

* Added check to make small images use slowgeom instead

* comment

* Changelog add

* fixed some tests

* paths

* updateed file to check for getsn

* typo
parent d7a2024c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ namespace Isis {
    projCubeLabel >> projLabel;

    testCube = new Cube();
    testCube->fromIsd(tempDir.path() + "default.cub", label, isd, "rw");
    testCube->fromIsd(tempDir.path() + "/default.cub", label, isd, "rw");

    LineManager line(*testCube);
    int pixelValue = 1;
+139 −139

File changed.

Preview size limit exceeded, changes collapsed.

+3 −1
Original line number Diff line number Diff line
@@ -121,9 +121,11 @@ TEST_F(DefaultCube, FunctionalTestCamstatsAttach) {
  UserInterface options(APP_XML, args);
  Pvl appLog;

  QString inPath = testCube->fileName();

  camstats(testCube, options, &appLog);

  testCube->open(tempDir.path()+"/default.cub", "r");
  testCube->open(inPath, "r");
  EXPECT_TRUE(testCube->hasTable("CameraStatistics"));
}

+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ TEST_F(DefaultCube, FunctionalTestGetsnAllTrue) {
  QString APP_XML = FileName("$ISISROOT/bin/xml/getsn.xml").expanded();
  QString expectedSN = "Viking1/VISB/33322515";
  QString expectedON = "Viking1/VISB/33322515";
  
  QVector<QString> args = { "FILE=TRUE",
                           "SN=TRUE",
                           "OBSERVATION=TRUE"};