stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r553924 - /incubator/stdcxx/trunk/tests/iostream/27.stringbuf.virtuals.cpp
Date Fri, 06 Jul 2007 15:21:38 GMT
Author: faridz
Date: Fri Jul  6 08:21:37 2007
New Revision: 553924

URL: http://svn.apache.org/viewvc?view=rev&rev=553924
Log:
2007-07-06 Farid Zaripov <Farid_Zaripov@epam.com>

	* 27.stringbuf.virtuals.cpp: #define EOF as unique value;
	(test_virtual): Assign arg0 and ret_expect to Traits::eof() if EOF passed.

Modified:
    incubator/stdcxx/trunk/tests/iostream/27.stringbuf.virtuals.cpp

Modified: incubator/stdcxx/trunk/tests/iostream/27.stringbuf.virtuals.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/iostream/27.stringbuf.virtuals.cpp?view=diff&rev=553924&r1=553923&r2=553924
==============================================================================
--- incubator/stdcxx/trunk/tests/iostream/27.stringbuf.virtuals.cpp (original)
+++ incubator/stdcxx/trunk/tests/iostream/27.stringbuf.virtuals.cpp Fri Jul  6 08:21:37 2007
@@ -34,7 +34,7 @@
 /**************************************************************************/
 
 #undef EOF
-#define EOF   traits_eof
+#define EOF   (_RWSTD_INT_MIN + 2)
 
 #undef NOT_EOF
 #define NOT_EOF   (_RWSTD_INT_MIN + 1)
@@ -178,6 +178,12 @@
         rw_note (0, 0, 0, "test on line %d disabled", line);
         return;
     }
+
+    if (EOF == arg0)
+        arg0 = Traits::eof ();
+
+    if (EOF == ret_expect)
+        ret_expect = Traits::eof ();
 
     // widen the source sequence into the (possibly wide) character buffer
     static charT wstr [4096];



Mime
View raw message