From a0c6e974a3393642bda80fed5bce464a6c6cf2ec Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 25 May 2010 02:29:05 +0000 Subject: 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. --- src/unit/myriad.unit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/unit/myriad.unit') diff --git a/src/unit/myriad.unit b/src/unit/myriad.unit index cf861a3..ed121cc 100644 --- a/src/unit/myriad.unit +++ b/src/unit/myriad.unit @@ -76,8 +76,7 @@ suite Myriad { FString sFileName("myriad-XXXXXXX"); - tempFile( sFileName ); - File fMyriad( sFileName, File::WriteNew|File::Read ); + File fMyriad = tempFile( sFileName ); Myriad m( fMyriad ); m.initialize( 64 ); -- cgit v1.2.3