Index: libs/format/test/format_test3.cpp =================================================================== --- libs/format/test/format_test3.cpp (revision 79031) +++ libs/format/test/format_test3.cpp (working copy) @@ -88,7 +88,11 @@ s = str( format("%2$014x [%1%] %|2$05|\n") % (format("%05s / %s") % -18 % 7) %group(showbase, -100) ); - if( s != "0x0000ffffff9c [-0018 / 7] -0100\n" ){ + s2 = "0x0000ffffff9c [-0018 / 7] -0100\n" ; +#if defined(__SUNPRO_CC) && defined(_STLP_IOSTREAM) + if ( sizeof(long) == 8 ) s2 = "0xffffffffffffff9c [-0018 / 7] -0100\n" ; +#endif + if( s != s2 ){ cerr << s ; BOOST_ERROR("nesting did not work"); }