diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-05-25 02:29:05 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-05-25 02:29:05 +0000 |
commit | a0c6e974a3393642bda80fed5bce464a6c6cf2ec (patch) | |
tree | 30e3098bb9a4da43bf5f94bd1e1944e070144615 /src/unitsuite.h | |
parent | ecc191f590f76584a14c9c51727412b0b7b3086e (diff) | |
download | libbu++-a0c6e974a3393642bda80fed5bce464a6c6cf2ec.tar.gz libbu++-a0c6e974a3393642bda80fed5bce464a6c6cf2ec.tar.bz2 libbu++-a0c6e974a3393642bda80fed5bce464a6c6cf2ec.tar.xz libbu++-a0c6e974a3393642bda80fed5bce464a6c6cf2ec.zip |
We now have a portable tempfile function, cool, it compiles on windows.
Fixed a bug in Socket, it wasn't closing the socket in all exception cases.
Also fixed a few things in the unit test framework, going to add some more
helpers soon.
Diffstat (limited to '')
-rw-r--r-- | src/unitsuite.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unitsuite.h b/src/unitsuite.h index 7d026c2..74aac6f 100644 --- a/src/unitsuite.h +++ b/src/unitsuite.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <stdint.h> | 11 | #include <stdint.h> |
12 | #include "bu/list.h" | 12 | #include "bu/list.h" |
13 | #include "fstring.h" | 13 | #include "fstring.h" |
14 | #include "bu/file.h" | ||
14 | 15 | ||
15 | namespace Bu | 16 | namespace Bu |
16 | { | 17 | { |
@@ -61,7 +62,7 @@ namespace Bu | |||
61 | 62 | ||
62 | int run( int argc=0, char *argv[]=NULL ); | 63 | int run( int argc=0, char *argv[]=NULL ); |
63 | 64 | ||
64 | void tempFile( Bu::FString &sFileName ); | 65 | Bu::File tempFile( Bu::FString &sFileName ); |
65 | 66 | ||
66 | typedef void (UnitSuite::*Test)(); | 67 | typedef void (UnitSuite::*Test)(); |
67 | 68 | ||
@@ -110,6 +111,7 @@ namespace Bu | |||
110 | 111 | ||
111 | typedef Bu::List<Bu::FString> StrList; | 112 | typedef Bu::List<Bu::FString> StrList; |
112 | StrList lFileCleanup; | 113 | StrList lFileCleanup; |
114 | int iNameWidth; | ||
113 | }; | 115 | }; |
114 | } | 116 | } |
115 | 117 | ||