]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
7.cc: Include <testsuite_hooks.h>, tweak.
authorPaolo Carlini <pcarlini@unitus.it>
Wed, 2 Jul 2003 10:35:14 +0000 (12:35 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 2 Jul 2003 10:35:14 +0000 (10:35 +0000)
2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

* testsuite/22_locale/num_put/put/char/7.cc: Include
<testsuite_hooks.h>, tweak.
* testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.

From-SVN: r68827

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/num_put/put/char/7.cc
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/7.cc

index 9845a247cfbfa42e93c7728d647dba0f496a30e5..65a2c93090f279dcf183d19cb6f851e84782404a 100644 (file)
@@ -1,3 +1,9 @@
+2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
+
+       * testsuite/22_locale/num_put/put/char/7.cc: Include
+       <testsuite_hooks.h>, tweak.
+       * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
+
 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
 
        * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
index 1066c566b3d09d9ebb8308535620c912871bf0c0..c91e2a21524870f9e5b556aa025d19fe7bc55a93 100644 (file)
 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 // USA.
 
+#include <sstream>
 #include <iostream>
 #include <locale>
+#include <testsuite_hooks.h>
 
 // libstdc++/9828
 void test01()
 {
   using namespace std;
+  bool test = true;
+
   typedef num_put<char> np_t;
 
   ostringstream stream;
   const np_t& np = use_facet<np_t>(stream.getloc());
 
   np.put(stream, wcout, ' ', static_cast<long>(10));
-  VERIFY( stream.str() == ' ');
+  VERIFY( stream.str() == "10" );
 }
 
 int main()
index 12e8a5f3d051924580af450e89a90f8b6e6d51c7..3b181456f2977065e2ca826e429c8f4c6809c0f2 100644 (file)
 #include <sstream>
 #include <iostream>
 #include <locale>
+#include <testsuite_hooks.h>
 
 // libstdc++/9828
 void test01()
 {
   using namespace std;
+  bool test = true;
+
   typedef num_put<wchar_t> npw_t;
 
   wostringstream stream;
   const npw_t& npw = use_facet<npw_t>(stream.getloc());
 
   npw.put(stream, cout, L' ', static_cast<long>(10));
-  VERIFY( stream.str() == L' ');
+  VERIFY( stream.str() == L"10" );
 }
 
 int main()