aboutsummaryrefslogtreecommitdiff
path: root/src/tests/bzip2.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/bzip2.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tests/bzip2.cpp b/src/tests/bzip2.cpp
index 88c5a5d..de7c034 100644
--- a/src/tests/bzip2.cpp
+++ b/src/tests/bzip2.cpp
@@ -10,10 +10,16 @@
10 10
11int main( int argc, char *argv[] ) 11int main( int argc, char *argv[] )
12{ 12{
13 if( argc < 3 )
14 {
15 printf("usage: %s <in> <out>\n", argv[0] );
16 return -1;
17 }
18
13 char buf[1024]; 19 char buf[1024];
14 size_t nRead; 20 size_t nRead;
15 21
16 Bu::File f( "test.bz2", "wb" ); 22 Bu::File f( argv[0], "wb" );
17 Bu::BZip2 bz2( f ); 23 Bu::BZip2 bz2( f );
18 24
19 Bu::File fin( argv[1], "rb"); 25 Bu::File fin( argv[1], "rb");