Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toString self-tests failing with MSVC2013 #575

Closed
RossBencina opened this issue Jan 20, 2016 · 3 comments
Closed

toString self-tests failing with MSVC2013 #575

RossBencina opened this issue Jan 20, 2016 · 3 comments
Labels

Comments

@RossBencina
Copy link
Contributor

Current master is failing the following two tests when built with MSVC2013:

SelfTest.exe is a Catch v1.3.2 host application.
Run with -? for options

-------------------------------------------------------------------------------
toString( vectors<has_toString )
-------------------------------------------------------------------------------
C:\catch\Catch-test\projects\SelfTest\ToStringWhich.cpp(52)
...............................................................................

C:\catch\Catch-test\projects\SelfTest\ToStringWhich.cpp(55): FAILED:
  REQUIRE( Catch::toString( v ) == "{ {?} }" )
with expansion:
  "{ toString( has_toString ) }" == "{ {?} }"

-------------------------------------------------------------------------------
toString( vectors<has_maker_and_toString )
-------------------------------------------------------------------------------
C:\catch\Catch-test\projects\SelfTest\ToStringWhich.cpp(64)
...............................................................................

C:\catch\Catch-test\projects\SelfTest\ToStringWhich.cpp(67): FAILED:
  REQUIRE( Catch::toString( v ) == "{ StringMaker<has_maker_and_toString> }" )
with expansion:
  "{ toString( has_maker_and_toString ) }"
  ==
  "{ StringMaker<has_maker_and_toString> }"

===============================================================================
test cases: 100 |  98 passed | 2 failed
assertions: 630 | 628 passed | 2 failed
@RossBencina RossBencina changed the title toString tests failing with MSVC2013 toString self-tests failing with MSVC2013 Jan 20, 2016
@snaewe
Copy link

snaewe commented Sep 16, 2016

FWIW, I can confirm this. If I apply this commit
snaewe/Catch@0205806 the test succeeds with MSVC2013, mingw gcc-6.1 (both on Win7), and gcc 4.8.4 on Linux.

@horenmar
Copy link
Member

Same goes with for MSVC 2015.

@horenmar horenmar added the Bug label Jan 17, 2017
@horenmar
Copy link
Member

IIRC this was a problem with 2-phase lookup in MSVC that couldn't be quite fixed. Since Catch2 no longer uses toString and thus does not have this problem (and fully updated MSVC 2017 support 2-phase lookup!), I am going to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants