diff options
author | Shahbaz Youssefi <syoussefi@google.com> | 2019-12-10 14:59:56 (GMT) |
---|---|---|
committer | Shahbaz Youssefi <syoussefi@chromium.org> | 2019-12-16 18:01:52 (GMT) |
commit | 4b7809c2f5236b16a2e3b45e2b5ade48fb6a3c0c (patch) | |
tree | 12c43c326e613a4d8e96fe1399521f54ae69576f /googletest/include | |
parent | d2016469064bdb488ce271c84684518d2716fec2 (diff) | |
download | googletest-4b7809c2f5236b16a2e3b45e2b5ade48fb6a3c0c.zip googletest-4b7809c2f5236b16a2e3b45e2b5ade48fb6a3c0c.tar.gz googletest-4b7809c2f5236b16a2e3b45e2b5ade48fb6a3c0c.tar.bz2 |
Revert "Googletest export": Remove test for empty prefix
This reverts commit 4c25e2b87fcb78abcfdee2739db9ed7a19754cd3.
Reason for revert: Reverting the commit that disallows empty prefixes.
Original commit message:
Remove a test case rendered obsolete by disallowing empty argument for INSTANTIATE_TEST_SUITE_P.
Remove the code that it was testing.
Diffstat (limited to 'googletest/include')
-rw-r--r-- | googletest/include/gtest/internal/gtest-param-util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-param-util.h b/googletest/include/gtest/internal/gtest-param-util.h index 70c4335..3f2495b 100644 --- a/googletest/include/gtest/internal/gtest-param-util.h +++ b/googletest/include/gtest/internal/gtest-param-util.h @@ -574,7 +574,10 @@ class ParameterizedTestSuiteInfo : public ParameterizedTestSuiteInfoBase { test_param_names.insert(param_name); - test_name_stream << test_info->test_base_name << "/" << param_name; + if (!test_info->test_base_name.empty()) { + test_name_stream << test_info->test_base_name << "/"; + } + test_name_stream << param_name; MakeAndRegisterTestInfo( test_suite_name.c_str(), test_name_stream.GetString().c_str(), nullptr, // No type parameter. |