diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-04-14 18:04:52 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-04-14 18:04:52 +0000 |
commit | da1de5cdb5c42ce811a66d377789e585042b98c7 (patch) | |
tree | 44f530399c603252535232ae6483abce734ca828 /src/unit/file.unit | |
parent | 49d9fa3c2435b8e97ffdc42e40a880a3dad82f8a (diff) | |
download | libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.tar.gz libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.tar.bz2 libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.tar.xz libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.zip |
Added support for running subsets of unit tests to Bu::UnitSuite, now just list
the names of the tests you want to run on the command line.
Also, fixed some minor issues in two of the test suites.
Diffstat (limited to 'src/unit/file.unit')
-rw-r--r-- | src/unit/file.unit | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unit/file.unit b/src/unit/file.unit index fb04e57..efca4f1 100644 --- a/src/unit/file.unit +++ b/src/unit/file.unit | |||
@@ -48,7 +48,11 @@ suite File | |||
48 | if( s < 50 ) | 48 | if( s < 50 ) |
49 | { | 49 | { |
50 | unitTest( total == 256 ); | 50 | unitTest( total == 256 ); |
51 | unitTest( sf.isEos() == false ); | ||
52 | unitTest( sf.read( buf, 1 ) == 0 ); | ||
51 | unitTest( sf.isEos() == true ); | 53 | unitTest( sf.isEos() == true ); |
54 | // EOS is only set when an attempt to read past the end of | ||
55 | // the stream is made, not when a short block is returned. | ||
52 | break; | 56 | break; |
53 | } | 57 | } |
54 | } | 58 | } |