Marshall Clow
d1b5078579
Fix a bug in the move-assigment operator for basic_stringbuf. Thanks to Johnathan Wakeley for the bug report
...
llvm-svn: 217894
2014-09-16 18:57:52 +00:00
Eric Fiselier
1f7bd5f24d
Fix assignments that should be comparisons x3
...
llvm-svn: 216318
2014-08-23 07:55:29 +00:00
Eric Fiselier
90e0867742
Change two tests to be less dependant on locales.
...
This patch removes the use of the "%c" specifier for getting/setting times.
The semantics of this specifier differ between linux and Mac. I don't believe
the use of this specifier was important to the test.
The following tests now pass on linux.
test/input.output/iostream.format/ext.manip/get_time.pass.cpp
test/input.output/iostream.format/ext.manip/put_time.pass.cpp
llvm-svn: 215417
2014-08-12 00:48:56 +00:00
Dan Albert
a85b27f6f7
Add locales to available_features for tests.
...
Linux has a lot of failures caused by not having support for certain
locales. Since these come out as a lot of noise in the test results,
have lit.cfg detect the presence of the various locales used in the
tests and add them to config.available_features as locale.LOCALE_NAME.
This patch also adds REQUIRES: locale.REQUIRED_LOCALE to every test that
I saw failing in this manner. We probably need to add more for all the
tests requiring en_US.UTF-8, but we can do that on an as-needed basis.
One thing that concerns me is how many tests get skipped because of
missing locales (especially in regex/). We should make a point of
splitting up any tests that test default behavior _and_ behavior under a
given locale so that we aren't losing coverage for default behavior.
llvm-svn: 214753
2014-08-04 18:44:48 +00:00
Nico Weber
0797874f33
Remove unused code in a libc++ test.
...
Other tests in this directory use this type, so it's probably copypasta from
there.
(test_buf only forwards to the superclass in all tests where it's used though,
so I wonder if it can be replaced with just using filebuf / wfilebuf
everywhere?)
llvm-svn: 210019
2014-06-02 12:00:08 +00:00
Marshall Clow
ef0e8c391e
Fix bug 19740; round-tripping a pointer through a stream doesn't work
...
llvm-svn: 209305
2014-05-21 16:02:20 +00:00
Justin Bogner
1f393c3eaf
Remove XFAIL from a number of tests that aren't expected to fail
...
These tests haven't been failing on darwin11 or 12 since r189610 when
pr17027 was fixed, but they've been keeping the libc++ bot red by
XPASSing since then.
llvm-svn: 208831
2014-05-15 00:55:44 +00:00
Marshall Clow
79a770ba45
Add more tests for std::ws as pointed out by bug #19497
...
llvm-svn: 206770
2014-04-21 18:12:09 +00:00
Marshall Clow
b162b17f05
Implement LWG #2344 : quoted()'s interaction with padding is unclear. I think that anyone using quoted with padding is really confused, but it should work the way the rest of iostreams works.
...
llvm-svn: 203290
2014-03-07 21:45:32 +00:00
Marshall Clow
eed0bdee59
Fix a test that I broke over the weekend
...
llvm-svn: 195143
2013-11-19 19:14:27 +00:00
Marshall Clow
513ecaba91
Fixed bug in quoted strings implementation. Added test to be sure. Thanks to Peter Sommerlad for the report (and suggested fix)
...
llvm-svn: 194725
2013-11-14 20:01:38 +00:00
Marshall Clow
e1bedf4e93
LWG issue 2341; Make the two variants of basic_ostream::seekp and basic_istream::seekg behave consistently; update tests to make sure
...
llvm-svn: 193814
2013-10-31 22:20:45 +00:00
Marshall Clow
8de32cb3dc
Implement national body comment GB9: remove std::gets
...
llvm-svn: 192538
2013-10-12 19:09:47 +00:00
Marshall Clow
ef44edfde4
N3545: Quoted strings
...
llvm-svn: 190032
2013-09-05 04:48:45 +00:00
Howard Hinnant
427ae44637
XFAIL a few tests on darwin12
...
llvm-svn: 189043
2013-08-22 18:47:39 +00:00
Howard Hinnant
fee09c68a0
Add pointer format test for Windows.
...
llvm-svn: 186472
2013-07-16 23:50:06 +00:00
Howard Hinnant
e0fe3d2e96
War on tabs.
...
llvm-svn: 185865
2013-07-08 21:06:38 +00:00
Howard Hinnant
5e00063b86
Silence -Wint-to-void-pointer-cast warning in test.
...
llvm-svn: 185756
2013-07-06 14:41:36 +00:00
Howard Hinnant
4a142ec6b0
XFAIL this test on 10.7 and 10.8
...
llvm-svn: 185391
2013-07-01 22:59:14 +00:00
Howard Hinnant
eecacc0fad
In istream::ignore, check the delimeter as an int_type, not as a char_type, so as to correctly handle EOF. This fixes http://llvm.org/bugs/show_bug.cgi?id=16427
...
llvm-svn: 185298
2013-07-01 00:37:50 +00:00
Howard Hinnant
1347d33451
The move / swap members were not correctly taking all of the possible states of the basic_stringbuf into account. Just rewrote these members. Test included. This fixes http://llvm.org/bugs/show_bug.cgi?id=15659 .
...
llvm-svn: 178690
2013-04-03 20:21:29 +00:00
Howard Hinnant
7c5b88b134
Test cleanup with respect to use of deprecated tmpnam function. Also Windows port for these tests to use _tempnam. The bulk of this patch was donated anonymously. I've tested it on OS X and accept responsibility for it. If I've broken anyone's platform by switching from tmpnam to mktemp for the generation of temporary file names, just let me know. Should be easy to fix in test/support/platform_support.h
...
llvm-svn: 177755
2013-03-22 20:05:40 +00:00
Daniel Dunbar
d15f013dc2
[tests] Mark some istream.unformatted expected failures (with system libc++).
...
llvm-svn: 174444
2013-02-05 21:43:32 +00:00
Marshall Clow
322270842c
Move common header files into a 'support' directory; make 'testit' include -I to that directory; rename 'iterators.h' to 'iterator_test.h'; remove hard-coded paths to include files from more than 350 source files
...
llvm-svn: 171594
2013-01-05 03:21:01 +00:00
Howard Hinnant
d15de653f0
Test case for http://llvm.org/bugs/show_bug.cgi?id=14670 .
...
llvm-svn: 170706
2012-12-20 16:50:07 +00:00
Howard Hinnant
a30af5f7cd
Andrew Morrow: This patch fixes
...
test/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp
to accept '(nil)' as a valid representation for NULL so that the test
passes on Linux. The same thing is already done in some other tests,
like in /test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp.
llvm-svn: 161188
2012-08-02 18:12:06 +00:00
Howard Hinnant
5d926bf1b8
noexcept and constexpr applied to <ios>.
...
llvm-svn: 160593
2012-07-21 01:03:40 +00:00
Howard Hinnant
33a30f4159
Windows porting work by Ruben Van Boxem
...
llvm-svn: 141003
2011-10-03 15:23:59 +00:00
David Chisnall
13bddcf1bc
Remove undefines in cstdio test. Fix these properly rather than bodging the tests.
...
llvm-svn: 140264
2011-09-21 17:37:18 +00:00
David Chisnall
71850c961d
More fixes to the tests. Add UTF-8 encoding to all locales that don't specify one. Undefine some stdio.h macros that break the tests.
...
llvm-svn: 140252
2011-09-21 14:59:10 +00:00
David Chisnall
b25f615c58
Fully-qualify some more locales in the tests...
...
llvm-svn: 140251
2011-09-21 14:48:49 +00:00
David Chisnall
8b053d5ec1
More locale cleanups. Fully specify locales in iostream tests.
...
llvm-svn: 140247
2011-09-21 12:09:17 +00:00
Howard Hinnant
00d8c245b2
Reimplemented much of <istream> such that single character extractions do not check to see if this is the last character in the stream and thus never set eofbit. This fixes http://llvm.org/bugs/show_bug.cgi?id=10817 . This fix requires a recompiled libc++.dylib to be fully implemented. The recompiled libc++.dylib is ABI compatible with that shipped on Lion.
...
llvm-svn: 138961
2011-09-01 21:02:45 +00:00
Howard Hinnant
09ddc43442
Correct test.
...
llvm-svn: 135460
2011-07-19 01:07:49 +00:00
Alexis Hunt
483cf24547
Make all fstream tests use tmpnam if creating files, rather than
...
hard-coded names.
llvm-svn: 135444
2011-07-18 23:51:21 +00:00
Alexis Hunt
4c14ed75ee
Do a litmus test of using tmpnam to generate safe temporary file names
...
for the tests that open new data files.
llvm-svn: 135422
2011-07-18 20:46:16 +00:00
Howard Hinnant
e0d67710e9
Fix test bug.
...
llvm-svn: 131328
2011-05-14 00:07:53 +00:00
Howard Hinnant
fe7cffaf57
Suppress some warings in the tests.
...
llvm-svn: 131327
2011-05-14 00:04:05 +00:00
Howard Hinnant
412dbebe1b
license change
...
llvm-svn: 119395
2010-11-16 22:09:02 +00:00
Howard Hinnant
7609c9b665
Changed __config to react to all of clang's currently documented has_feature flags, and renamed _LIBCPP_MOVE to _LIBCPP_HAS_NO_RVALUE_REFERENCES to be more consistent with the rest of the libc++'s flags, and with clang's nomenclature.
...
llvm-svn: 113086
2010-09-04 23:28:19 +00:00
Howard Hinnant
8c93ff2ce3
Accidentally changed a data file during the whitespace cleanup
...
llvm-svn: 111845
2010-08-23 21:23:21 +00:00
Howard Hinnant
66dbf0d311
Fixing whitespace problems
...
llvm-svn: 111758
2010-08-22 00:26:48 +00:00
Howard Hinnant
e95bd34de6
UTF-8 data in this file somehow got garbled
...
llvm-svn: 104952
2010-05-28 16:37:38 +00:00
Howard Hinnant
0dd05fb167
more :: to _
...
llvm-svn: 104006
2010-05-18 00:09:37 +00:00
Howard Hinnant
eb6fa6af2b
Got rid of more :: path names
...
llvm-svn: 103970
2010-05-17 20:38:02 +00:00
Howard Hinnant
5b08a8a432
Wiped out some non-ascii characters that snuck into the copyright.
...
llvm-svn: 103516
2010-05-11 21:36:01 +00:00
Howard Hinnant
3e519524c1
libcxx initial import
...
llvm-svn: 103490
2010-05-11 19:42:16 +00:00