This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: fix portability for ext/stdio_filebuf/char/10063-2.cc


I wrote last week:

> FAIL: ext/stdio_filebuf/char/10063-2.cc execution test
[Explanation of assumption violation found, removed...]

Looking over the history of this extension, I think the test case just
needs to be slightly tweaked.  Paolo, as the new expert in this area, OK?

	* testsuite/ext/stdio_filebuf/char/10063-2.cc: Use
	__gnu_cxx::stdio_sync_filebuf<char>.

Index: libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-2.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-2.cc,v
retrieving revision 1.2
diff -c -r1.2 10063-2.cc
*** libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-2.cc	29 Dec 2003 19:26:16 -0000	1.2
--- libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-2.cc	20 Jan 2004 00:57:41 -0000
***************
*** 22,28 ****
  
  #include <cstdio>
  #include <fstream>
! #include <ext/stdio_filebuf.h>
  #include <testsuite_hooks.h>
  
  void test2()
--- 22,28 ----
  
  #include <cstdio>
  #include <fstream>
! #include <ext/stdio_sync_filebuf.h>
  #include <testsuite_hooks.h>
  
  void test2()
***************
*** 41,47 ****
    c = getc(file);
    VERIFY(c == '1');
    {
!     __gnu_cxx::stdio_filebuf<char> sbuf(file, ios_base::in);
      c = sbuf.sbumpc();
      VERIFY(c == '2');
      c = sbuf.sbumpc();
--- 41,47 ----
    c = getc(file);
    VERIFY(c == '1');
    {
!     __gnu_cxx::stdio_sync_filebuf<char> sbuf(file);
      c = sbuf.sbumpc();
      VERIFY(c == '2');
      c = sbuf.sbumpc();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]