[cfe-commits] [libcxx] r161188 - in /libcxx/trunk: test/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp www/results.Linux.html

Howard Hinnant hhinnant at apple.com
Thu Aug 2 11:12:06 PDT 2012


Author: hhinnant
Date: Thu Aug  2 13:12:06 2012
New Revision: 161188

URL: http://llvm.org/viewvc/llvm-project?rev=161188&view=rev
Log:
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.

Modified:
    libcxx/trunk/test/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp
    libcxx/trunk/www/results.Linux.html

Modified: libcxx/trunk/test/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp?rev=161188&r1=161187&r2=161188&view=diff
==============================================================================
--- libcxx/trunk/test/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp (original)
+++ libcxx/trunk/test/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp Thu Aug  2 13:12:06 2012
@@ -63,7 +63,7 @@
         std::ostream os(&sb);
         const void* n = 0;
         os << n;
-        assert(sb.str() == "0x0");
+        assert(sb.str() == "0x0" || sb.str() == "(nil)");
         assert(os.good());
     }
     {

Modified: libcxx/trunk/www/results.Linux.html
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/www/results.Linux.html?rev=161188&r1=161187&r2=161188&view=diff
==============================================================================
--- libcxx/trunk/www/results.Linux.html (original)
+++ libcxx/trunk/www/results.Linux.html Thu Aug  2 13:12:06 2012
@@ -35,11 +35,6 @@
     11:55:59 PM EST' which does not match the expected result in the
     test.
    put_time.pass.cpp: idem.
-  output.streams/
-   ostream.formatted/
-    ostream.inserters.arithmetic/
-     pointer.pass.cpp: Local representation of NULL is '(nil)' which
-      the test does not expect. Patch in progress.
 language.support/
  support.start.term/
   quick_exit.pass.cpp: Fails because it doesn't know about





More information about the cfe-commits mailing list