svn commit: trunk/uClibc++/tests
gkajmowi at uclibc.org
gkajmowi at uclibc.org
Sun Jul 23 01:03:37 UTC 2006
Author: gkajmowi
Date: 2006-07-22 18:03:36 -0700 (Sat, 22 Jul 2006)
New Revision: 15740
Log:
Print out mildly useful diagnostic information in the event that fstreamtest can't open up the test file.
Modified:
trunk/uClibc++/tests/fstreamtest.cpp
Changeset:
Modified: trunk/uClibc++/tests/fstreamtest.cpp
===================================================================
--- trunk/uClibc++/tests/fstreamtest.cpp 2006-07-21 03:29:50 UTC (rev 15739)
+++ trunk/uClibc++/tests/fstreamtest.cpp 2006-07-23 01:03:36 UTC (rev 15740)
@@ -85,6 +85,12 @@
std::cout << "Now reading other input file to see what wonderful goodness we can discover" << std::endl;
inFile.open("fstreamtest.input", std::ios::in | std::ios::binary );
+ if( !inFile.is_open()){
+ std::cout << "Could not open fstreamtest.input" << std::endl;
+ std::cout << "Are you in the correct directory?" << std::endl;
+ std::cout << "This test wasn't designed to run without the uClibc++ driver behind it" << std::endl;
+ return 1;
+ }
inFile.seekg(27);
inFile.read(&a, 1);
b = a;
More information about the uClibc-cvs
mailing list