Skip to content

Commit 8bc6971

Browse files
committed
Fixed other tests with new errors and label size change
1 parent 3827f52 commit 8bc6971

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

isis/src/base/objs/UserInterface/unitTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ using namespace std;
1717

1818
int main(int argc, char *argv[]) {
1919
Isis::Preference::Preferences(true);
20+
CPLSetErrorHandler(CPLQuietErrorHandler);
2021

2122
cout << "Unit test for Isis::UserInterface ..." << endl;
2223

isis/src/database/objs/DbAccess/DbAccess.truth

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ Key: test_key
1616
Value: test value
1717
() operator: test value
1818
**PROGRAMMER ERROR** Requested index (99) out of range.
19+
**I/O ERROR** Unable to read label from [/tmp/not_a_file].
20+
**PROGRAMMER ERROR** Failed opening GDALDataset from [not_a_file].
1921
**I/O ERROR** Unable to open [/tmp/not_a_file].

isis/src/database/objs/DbAccess/unitTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ using namespace Isis;
1414

1515
int main(int argc, char *argv[]) {
1616
Isis::Preference::Preferences(true);
17-
17+
CPLSetErrorHandler(CPLQuietErrorHandler);
18+
1819
DbAccess d;
1920
DbProfile p("test profile");
2021

isis/tests/GTiffTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ TEST_F(TempTestingFiles, TestGTiffCreateWriteCopy) {
9090

9191
// Test the open and read methods
9292
Cube in(file2);
93-
check_tiff(in, file2, 150, 200, 2, 0, 1, 7, 0, 2, 1, 1, 0, 65536);
93+
check_tiff(in, file2, 150, 200, 2, 0, 1, 7, 0, 2, 1, 1, 0, 6516);
9494

9595
LineManager inLine(in);
9696
j = 0;

0 commit comments

Comments
 (0)