Page MenuHomePhabricator

[libcxx] [test] Portability fix of std::ios_base::sync_with_stdio() test.
Needs ReviewPublic

Authored by amakc11 on Jan 20 2020, 11:25 AM.

Details

Reviewers
EricWF
Summary

The standard specifies effect of the std::ios_base::sync_with_stdio method only for false input value. Conformant implementations may leave the streams in unsynchronized state forever after calling this method with false value. So, all subsequent calls of this method will always return false even after calling this method with true. This patch marks extra checks as libc++ specific making the test more portable.

Diff Detail

Event Timeline

amakc11 created this revision.Jan 20 2020, 11:25 AM
Herald added a project: Restricted Project. · View Herald Transcript