lahwaacz opened a new issue, #2238: URL: https://github.com/apache/orc/issues/2238
`ToolTest.cc` has terrible handling of command-line options: https://github.com/apache/orc/blob/1d33d2aa0ef82aa080d7c9e1b5ac6b814c859f21/tools/test/ToolTest.cc#L37-L58 First, it interprets `argv[1]` as `exampleDirectory` and `argv[2]` as `buildDirectory`. Then it passes *all options* to `testing::InitGoogleTest(&argc, argv);` This means that passing optional arguments like `--gtest_*` does not work. If I do ```bash gtest_filter="-TestMatchParam/FileParam.Contents/19:-TestMatchParam/FileParam.Contents/23" build/tools/test/tool-test --gtest_filter="$gtest_filter" ``` then all tests except one fail with an error like ``` C++ exception with description "Can't open --gtest_filter=-TestMatchParam/FileParam.Contents/19:-TestMatchParam/FileParam.Contents/23/TestOrcFile.testDate2038.orc" thrown in the test body. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
