aboutsummaryrefslogtreecommitdiff
path: root/src/unit/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/unit/file.cpp')
-rw-r--r--src/unit/file.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unit/file.cpp b/src/unit/file.cpp
index a22239d..cc19fac 100644
--- a/src/unit/file.cpp
+++ b/src/unit/file.cpp
@@ -31,7 +31,7 @@ public:
31 // 31 //
32 void writeFull() 32 void writeFull()
33 { 33 {
34 Bu::File sf("testfile1", "wb"); 34 Bu::File sf("testfile1", Bu::File::Write );
35 for( int c = 0; c < 256; c++ ) 35 for( int c = 0; c < 256; c++ )
36 { 36 {
37 unsigned char ch = (unsigned char)c; 37 unsigned char ch = (unsigned char)c;
@@ -49,7 +49,7 @@ public:
49 49
50 void readBlocks() 50 void readBlocks()
51 { 51 {
52 Bu::File sf("testfile1", "rb"); 52 Bu::File sf("testfile1", Bu::File::Read );
53 unsigned char buf[50]; 53 unsigned char buf[50];
54 size_t total = 0; 54 size_t total = 0;
55 for(;;) 55 for(;;)
@@ -74,7 +74,7 @@ public:
74 { 74 {
75 try 75 try
76 { 76 {
77 Bu::File sf("doesn'texist", "rb"); 77 Bu::File sf("doesn'texist", Bu::File::Read );
78 unitFailed("No exception thrown"); 78 unitFailed("No exception thrown");
79 } 79 }
80 catch( Bu::FileException &e ) 80 catch( Bu::FileException &e )
@@ -85,7 +85,7 @@ public:
85 85
86 void readError2() 86 void readError2()
87 { 87 {
88 Bu::File sf("testfile1", "rb"); 88 Bu::File sf("testfile1", Bu::File::Read );
89 char buf[256]; 89 char buf[256];
90 int r = sf.read( buf, 256 ); 90 int r = sf.read( buf, 256 );
91 unitTest( r == 256 ); 91 unitTest( r == 256 );