]> gcc.gnu.org Git - gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc
basic_file_stdio.cc (__gnu_internal::fopen_mode): New function.
[gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / close / char / 9964.cc
index d51a5b1167bbd90406c87e673f9ec43fc3c45895..bd74fad34bf07d9fbb195305db73b6d756d5c099 100644 (file)
@@ -59,7 +59,7 @@ void test_07()
   
   filebuf fb;
   sleep(1);
-  filebuf* ret = fb.open(name, ios_base::out | ios_base::trunc);
+  filebuf* ret = fb.open(name, ios_base::in | ios_base::out);
   VERIFY( ret != NULL );
   VERIFY( fb.is_open() );
 
@@ -67,7 +67,7 @@ void test_07()
   fb.sputc('a');
 
   ret = fb.close();
-  VERIFY( ret == NULL );
+  VERIFY( ret != NULL );
   VERIFY( !fb.is_open() );
 }
 
This page took 0.031735 seconds and 5 git commands to generate.