Skip to content

Commit 38476a6

Browse files
author
D. A. Pellegrino
committed
#254 Set the dumpDictionary test case to take exactly the input from the data directory under revision control instead of user-supplied input to support automated testing.
1 parent c0c6121 commit 38476a6

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

libhdt/tests/dumpDictionary.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,16 @@ int main(int argc, char *argv[]) {
7171
}
7272
}
7373

74-
if (argc < 2) {
75-
cout << "ERROR: You must supply an input HDT File" << endl << endl;
76-
help();
77-
return 1;
78-
}
79-
inputFile = argv[optind];
74+
// if (argc < 2) {
75+
// cout << "ERROR: You must supply an input HDT File" << endl << endl;
76+
// help();
77+
// return 1;
78+
// }
79+
// inputFile = argv[optind];
80+
81+
// Input is explicitly set to the revision controlled .hdt for
82+
// automated test execution.
83+
inputFile = "../data/literals.hdt";
8084

8185
// Load HDT file
8286
HDT *hdt = HDTManager::mapIndexedHDT(inputFile.c_str());

0 commit comments

Comments
 (0)