aboutsummaryrefslogtreecommitdiff
path: root/src/unit/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unit/file.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/unit/file.cpp b/src/unit/file.cpp
index a45b8d7..1eaaf36 100644
--- a/src/unit/file.cpp
+++ b/src/unit/file.cpp
@@ -87,8 +87,14 @@ public:
87 unitTest( sf.isEOS() == false ); 87 unitTest( sf.isEOS() == false );
88 try 88 try
89 { 89 {
90 sf.read( buf, 5 ); 90 if( sf.read( buf, 5 ) > 0 )
91 unitFailed("No exception thrown"); 91 {
92 unitFailed("Non-zero read result");
93 }
94 else
95 {
96 sf.close();
97 }
92 } 98 }
93 catch( Bu::FileException &e ) 99 catch( Bu::FileException &e )
94 { 100 {