Skip to content

Commit 079012b

Browse files
committed
Revert "[TMP] Test args code"
This reverts commit 9c54fd6.
1 parent 3407e09 commit 079012b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ std::string g_data_dir;
66

77
int main(int argc, char *argv[]) {
88
testing::InitGoogleTest(&argc, argv);
9-
// if (argc < 2)
10-
// throw std::invalid_argument("missing data directory");
11-
g_data_dir = "../../tests/data"; // test data reside in <project_root>/tests/data;;
9+
if (argc < 2)
10+
throw std::invalid_argument("missing data directory");
11+
g_data_dir = argv[1];
1212
return RUN_ALL_TESTS();
1313
}

0 commit comments

Comments
 (0)