This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: New 7.cc tests
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: mark at codesourcery dot com
- Cc: jlquinn at optonline dot net, gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 02 Jul 2003 12:34:27 +0200
- Subject: Re: New 7.cc tests
- References: <200307020342.h623g70f011982@doubledemon.codesourcery.com>
Mark Mitchell wrote:
Jerry --
I think these tests:
2003-07-01 Jerry Quinn <jlquinn@optonline.net>
* 22_locale/num_put/put/char/7.cc: New.
* 22_locale/num_put/put/wchar_t/7.cc: New.
are missing a "#include <testsuite_hooks>" line. They are failing for
me on i686-pc-linux-gnu.
Not just that: frankly speaking, were quite broken...
Fixed with the below.
Paolo.
//////////
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.
diff -urN libstdc++-v3-curr/testsuite/22_locale/num_put/put/char/7.cc libstdc++-v3/testsuite/22_locale/num_put/put/char/7.cc
--- libstdc++-v3-curr/testsuite/22_locale/num_put/put/char/7.cc 2003-07-01 07:44:42.000000000 +0200
+++ libstdc++-v3/testsuite/22_locale/num_put/put/char/7.cc 2003-07-02 12:23:56.000000000 +0200
@@ -18,20 +18,24 @@
// 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()
diff -urN libstdc++-v3-curr/testsuite/22_locale/num_put/put/wchar_t/7.cc libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/7.cc
--- libstdc++-v3-curr/testsuite/22_locale/num_put/put/wchar_t/7.cc 2003-07-01 07:44:42.000000000 +0200
+++ libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/7.cc 2003-07-02 12:23:45.000000000 +0200
@@ -21,18 +21,21 @@
#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()