We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3407e09 commit 079012bCopy full SHA for 079012b
tests/test.cc
@@ -6,8 +6,8 @@ std::string g_data_dir;
6
7
int main(int argc, char *argv[]) {
8
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;;
+ if (argc < 2)
+ throw std::invalid_argument("missing data directory");
+ g_data_dir = argv[1];
12
return RUN_ALL_TESTS();
13
}
0 commit comments