[cfe-dev] [libc++][patch] Fix ostream.inserters test for null pointers on Linux
Chad Rosier
mcrosier at apple.com
Tue May 29 10:02:27 PDT 2012
Andrew,
Patches should be sent to the cfe-commits list (cfe-commits at cs.uiuc.edu).
Chad
On May 29, 2012, at 9:50 AM, Andrew C. Morrow wrote:
> Hi -
>
> The attached patch fixes the
> input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp
> test, which fails in my environment (Ubuntu 12.04 x86_64). The test
> expects a NULL pointer to be represented as '0x0', but in my
> environment it is represented as '(nil)'.
>
> This variation was already handled in
> localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp,
> so I just copied that logic. If there is a better way to do this,
> where the test doesn't need to enumerate the possible representations,
> please let me know and I'll apply it to both tests.
>
> Thanks,
> Andrew
> <ostream-null.patch>_______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list