Bug 241130 - devel/googletest 1.10.0 fails to build with TEST=on
Summary: devel/googletest 1.10.0 fails to build with TEST=on
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords:
: 248508 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-10-08 11:13 UTC by Ross McKelvie
Modified: 2020-10-15 19:30 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (jbeich)


Attachments
Poudriere testport log for devel/googletest (89.10 KB, text/plain)
2019-10-08 11:13 UTC, Ross McKelvie
no flags Details
ctest -V output (compressed) (64.09 KB, application/x-xz)
2020-10-15 19:28 UTC, Jan Beich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ross McKelvie 2019-10-08 11:13:17 UTC
Created attachment 208173 [details]
Poudriere testport log for devel/googletest

devel/googletest fails to build with TEST=on.  The test that fails is "34 - gtest_help_test".  I have attached the poudriere testport log building on 11.3-RELEASE-p3 amd64 but not investigated further.
Comment 1 Jan Beich freebsd_committer 2020-10-15 19:28:08 UTC
Created attachment 218774 [details]
ctest -V output (compressed)

"gmock-matchers_test" appears after ports r520417 and "googletest-port-test" appears on -CURRENT.

The following tests FAILED:
	  9 - gmock-matchers_test (Failed)
	 28 - googletest-port-test (Failed)
	 52 - gtest_help_test (Failed)

9: [ RUN      ] WhenDynamicCastToTest.AmbiguousCast
9: googlemock/test/gmock-matchers_test.cc:3465: Failure
9: Value of: as_base_ptr
9: Expected: when dynamic_cast to testing::gmock_matchers_test::(anonymous namespace)::AmbiguousCastTypes::VirtualDerived*, is NULL
9:   Actual: 0x7fffffffe748, 0x7fffffffe748
9: [  FAILED  ] WhenDynamicCastToTest.AmbiguousCast (0 ms)

28: [ RUN      ] RETest/0.ImplicitConstructorWorks
28: googletest/src/gtest-port.cc:758: Failure
28: Value of: is_valid_
28:   Actual: false
28: Expected: true
28: Regular expression ".*(\w+)" is not a valid POSIX Extended regular expression.
28: [  FAILED  ] RETest/0.ImplicitConstructorWorks, where TypeParam = std::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > (1 ms)

28: [ RUN      ] RETest/1.ImplicitConstructorWorks
28: googletest/src/gtest-port.cc:758: Failure
28: Value of: is_valid_
28:   Actual: false
28: Expected: true
28: Regular expression ".*(\w+)" is not a valid POSIX Extended regular expression.
28: [  FAILED  ] RETest/1.ImplicitConstructorWorks, where TypeParam = char const* (0 ms)

52: Test command: python3.7 "googletest/test/gtest_help_test.py" "--build_dir=../.build/googletest"
52: Test timeout computed to be: 10000000
52: googletest/test/gtest_help_test.py:110: DeprecationWarning: Please use assertEqual instead.
52:   self.assertEquals(0, exit_code)
52: googletest/test/gtest_help_test.py:111: DeprecationWarning: Please use assertTrue instead.
52:   self.assert_(HELP_REGEX.search(output), output)
52: FFFFFF..
52: ======================================================================
52: FAIL: testPrintsHelpWithFullFlag (__main__.GTestHelpTest)
52: ----------------------------------------------------------------------
52: Traceback (most recent call last):
52:   File "googletest/test/gtest_help_test.py", line 138, in testPrintsHelpWithFullFlag
52:     self.TestHelpFlag('--help')
52:   File "googletest/test/gtest_help_test.py", line 116, in TestHelpFlag
52:     self.assert_(STREAM_RESULT_TO_FLAG not in output, output)
52: AssertionError: False is not true : Running main() from googletest/src/gtest_main.cc
52: This program contains tests written using Google Test. You can use the
52: following command line flags to control its behavior:
52: 
52: Test Selection:
52:   --gtest_list_tests
52:       List the names of all tests instead of running them. The name of
52:       TEST(Foo, Bar) is "Foo.Bar".
52:   --gtest_filter=POSTIVE_PATTERNS[-NEGATIVE_PATTERNS]
52:       Run only the tests whose name matches one of the positive patterns but
52:       none of the negative patterns. '?' matches any single character; '*'
52:       matches any substring; ':' separates two patterns.
52:   --gtest_also_run_disabled_tests
52:       Run all disabled tests too.
[...]
52: ======================================================================
52: FAIL: testPrintsHelpWithIncorrectFlagStyle (__main__.GTestHelpTest)
52: ----------------------------------------------------------------------
52: Traceback (most recent call last):
52:   File "googletest/test/gtest_help_test.py", line 154, in testPrintsHelpWithIncorrectFlagStyle
52:     self.TestHelpFlag(incorrect_flag)
52:   File "googletest/test/gtest_help_test.py", line 116, in TestHelpFlag
52:     self.assert_(STREAM_RESULT_TO_FLAG not in output, output)
52: AssertionError: False is not true : Running main() from googletest/src/gtest_main.cc
[...]
Comment 2 Jan Beich freebsd_committer 2020-10-15 19:30:25 UTC
*** Bug 248508 has been marked as a duplicate of this bug. ***