Open
Description
ToolTest.cc
has terrible handling of command-line options:
Lines 37 to 58 in 1d33d2a
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
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.
Metadata
Metadata
Assignees
Labels
No labels