[cfe-commits] [libcxx] r150927 - /libcxx/trunk/test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp

Howard Hinnant hhinnant at apple.com
Sun Feb 19 06:51:01 PST 2012


Author: hhinnant
Date: Sun Feb 19 08:51:01 2012
New Revision: 150927

URL: http://llvm.org/viewvc/llvm-project?rev=150927&view=rev
Log:
Relax pointer output test to accept glibc's output.  Patch supplied by Jeffrey Yasskin.

Modified:
    libcxx/trunk/test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp

Modified: libcxx/trunk/test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp?rev=150927&r1=150926&r2=150927&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp Sun Feb 19 08:51:01 2012
@@ -38,6 +38,6 @@
         char str[50];
         output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v);
         std::string ex(str, iter.base());
-        assert(ex == "0x0");
+        assert(ex == "0x0" || ex == "(nil)");
     }
 }





More information about the cfe-commits mailing list