diff options
author | Paolo Carlini <paolo@gcc.gnu.org> | 2006-02-27 12:38:49 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2006-02-27 12:38:49 +0000 |
commit | 6e938053d48449d51703b8120644390f04c48e89 (patch) | |
tree | cc0b773e3abba3edbe2ef677f0f4c31e7e8a47a3 /libstdc++-v3/testsuite | |
parent | a9afbfd45bd9fd9255e9b01fb5a12bbf585c1612 (diff) | |
download | gcc-6e938053d48449d51703b8120644390f04c48e89.zip gcc-6e938053d48449d51703b8120644390f04c48e89.tar.gz gcc-6e938053d48449d51703b8120644390f04c48e89.tar.bz2 |
re PR libstdc++/14866 (27_io/ios_base/sync_with_stdio/1.cc is broken on simulator testglue targets)
2006-02-27 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14866
* testsuite/27_io/ios_base/sync_with_stdio/1.cc: Redirect
stderr instead.
From-SVN: r111474
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc b/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc index b2f0ee1e..dc78bb0 100644 --- a/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc +++ b/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc @@ -2,7 +2,8 @@ // 2000-05-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-01-17 Loren J. Rittle <ljrittle@acm.org> -// Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +// Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,19 +36,19 @@ void test01() { std::ios_base::sync_with_stdio(); - std::freopen("ios_base_members_static-1.txt", "w", stdout); + std::freopen("ios_base_members_static-1.txt", "w", stderr); for (int i = 0; i < 2; i++) { - std::printf("1"); - std::cout << "2"; - std::putc('3', stdout); - std::cout << '4'; - std::fputs("5", stdout); - std::cout << 6; - std::putchar('7'); - std::cout << 8 << '9'; - std::printf("0\n"); + std::fprintf(stderr, "1"); + std::cerr << "2"; + std::putc('3', stderr); + std::cerr << '4'; + std::fputs("5", stderr); + std::cerr << 6; + std::putc('7', stderr); + std::cerr << 8 << '9'; + std::fprintf(stderr, "0\n"); } } |