stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r642860 - /stdcxx/trunk/tests/localization/22.locale.time.get.cpp
Date Mon, 31 Mar 2008 02:34:15 GMT
Author: sebor
Date: Sun Mar 30 19:34:12 2008
New Revision: 642860

URL: http://svn.apache.org/viewvc?rev=642860&view=rev
Log:
2008-03-30  Martin Sebor  <sebor@roguewave.com>

	* tests/localization/22.locale.time.get.cpp (make_LC_TIME):
	Used rw_fatal() to verify postcondition of fopen().

Modified:
    stdcxx/trunk/tests/localization/22.locale.time.get.cpp

Modified: stdcxx/trunk/tests/localization/22.locale.time.get.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/localization/22.locale.time.get.cpp?rev=642860&r1=642859&r2=642860&view=diff
==============================================================================
--- stdcxx/trunk/tests/localization/22.locale.time.get.cpp (original)
+++ stdcxx/trunk/tests/localization/22.locale.time.get.cpp Sun Mar 30 19:34:12 2008
@@ -1138,6 +1138,8 @@
         return 0;
 
     std::FILE *fout = std::fopen (srcfname, "w");
+    rw_fatal (0 != fout, 0, __LINE__,
+              "fopen(%#s, \"w\") failed: %{#m} - %m", srcfname);
 
     std::fprintf (fout, "LC_TIME\n");
 
@@ -1274,6 +1276,9 @@
         return 0;
 
     fout = std::fopen (cmfname, "w");
+    rw_fatal (0 != fout, 0, __LINE__,
+              "fopen(%#s, \"w\") failed: %{#m} - %m", cmfname);
+
     pcs_write (fout, 0);
 
     std::fclose (fout);



Mime
View raw message