stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r674025 - /stdcxx/branches/4.2.x/tests/self/0.printf.cpp
Date Fri, 04 Jul 2008 12:11:26 GMT
Author: faridz
Date: Fri Jul  4 05:11:25 2008
New Revision: 674025

URL: http://svn.apache.org/viewvc?rev=674025&view=rev
Log:
2008-07-04  Farid Zaripov  <faridz@apache.com>

	* tests/self/0.printf.cpp: #included <cwchar> header for WEOF.
	(test_character): Use WEOF instead -1 in testing of the %{lc} format.

Modified:
    stdcxx/branches/4.2.x/tests/self/0.printf.cpp

Modified: stdcxx/branches/4.2.x/tests/self/0.printf.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/self/0.printf.cpp?rev=674025&r1=674024&r2=674025&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/self/0.printf.cpp (original)
+++ stdcxx/branches/4.2.x/tests/self/0.printf.cpp Fri Jul  4 05:11:25 2008
@@ -51,6 +51,8 @@
 #include <time.h>       // for struct tm
 #include <locale.h>     // for LC_ALL, ...
 
+#include <cwchar>       // for WEOF
+
 
 // disable tests for function name in "%{lF}"
 #define _RWSTD_NO_SPRINTFA_FUNNAME
@@ -341,7 +343,7 @@
     TEST ("%{lc}", L'A',    0, 0, "A");
     TEST ("%{lc}", L'Z',    0, 0, "Z");
     TEST ("%{lc}", L'\xff', 0, 0, "\\xff");
-    TEST ("%{lc}", -1,      0, 0, "EOF");
+    TEST ("%{lc}", WEOF,    0, 0, "EOF");
 
     //////////////////////////////////////////////////////////////////
     printf ("%s\n", "extension: \"%{#lc}\": quoted escaped wide character");
@@ -357,7 +359,7 @@
     TEST ("%{#lc}", L'A',    0, 0, "'A'");
     TEST ("%{#lc}", L'Z',    0, 0, "'Z'");
     TEST ("%{#lc}", L'\xff', 0, 0, "'\\xff'");
-    TEST ("%{#lc}", -1,      0, 0, "EOF");
+    TEST ("%{#lc}", WEOF,    0, 0, "EOF");
 }
 
 /***********************************************************************/



Mime
View raw message