[SERVER-9762] BasicTests::CmdLineParseConfigTest fails when built with libc++ Created: 23/May/13  Updated: 11/Jul/16  Resolved: 31/Jul/13

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 2.5.2

Type: Bug Priority: Minor - P4
Reporter: Andrew Morrow (Inactive) Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: C++11
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: OS X
Participants:

 Description   

The test fails an assertion. It appears to be a difference in how newlines are handled, but I didn't look much further than that.



 Comments   
Comment by auto [ 31/Jul/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-9762 Detect and return errors from stream in parseConfigFile and properly terminate loop
Branch: master
https://github.com/mongodb/mongo/commit/88a74d69fb5b48fcd752ff53faa4c3fad193a205

Comment by Andrew Morrow (Inactive) [ 30/Jul/13 ]

To repro:

scons --dd --c++11 --libc++ --osx-version-min=10.8 --allocator=system -j 10 --cc=/usr/bin/clang --cxx=/usr/bin/clang++ -j10 --mute ./test && ./test basic

Comment by Andrew Morrow (Inactive) [ 23/May/13 ]

Test fails as follows:

Thu May 23 10:21:56.342 [testsuite] basic | tests: 22 | fails: 1 | assert calls: 127
BasicTests::CmdLineParseConfigTest Expected: ss2.str().compare("password=\'foo bar baz\'\n\n") == 0 @src/mongo/dbtests/basictests.cpp:585
TOTALS | tests: 22 | fails: 1 | assert calls: 127

Generated at Thu Feb 08 03:21:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.