(file) Return to cabinet_fdi.c CVS log (file) (dir) Up to [RizwankCVS] / group3 / wine / dlls / cabinet / tests

Diff for /group3/wine/dlls/cabinet/tests/cabinet_fdi.c between version 2.11 and 2.13

version 2.11, 2005/02/27 09:37:56 version 2.13, 2005/03/11 07:38:58
Line 18 
Line 18 
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */  */
  
   #include <stdio.h>
 #include <stdlib.h> #include <stdlib.h>
 #include <string.h> #include <string.h>
 #include <sys/stat.h> #include <sys/stat.h>
 #include <stdarg.h> #include <stdarg.h>
   #include <malloc.h>
   
   #include <stdarg.h>
   #include <stdio.h>
   
   #include "windef.h"
   #include "winbase.h"
   #include "winerror.h"
   #include "fdi.h"
   
   #ifndef WIN_ENV
   #include <msvcrt/fcntl.h>
   #else
   #include <fcntl.h>
   #endif
   
   #include "tvfs.h"
   #include "data.h"
  
 #ifndef STANDALONE #ifndef STANDALONE
 #include <wine/test.h> #include <wine/test.h>
   #define _S_IREAD  0x0100
   #define _S_IWRITE 0x0080
 #define ok2 ok #define ok2 ok
 #else #else
 /* To build outside Wine tree, compile with cl -DSTANDALONE -D_X86_ tvfs.c cabinet_fdi.c FDI.lib  /* To build outside Wine tree, compile with cl -DSTANDALONE -D_X86_ -DWIN_ENV tvfs.c cabinet_fdi.c FDI.lib
   These are only called if standalone are used, defining ok and START_TEST, which would normally be declared in winetree */   These are only called if standalone are used, defining ok and START_TEST, which would normally be declared in winetree */
 #include <assert.h> #include <assert.h>
 #include <stdio.h>  
 #define START_TEST(name) main(int argc, char **argv) #define START_TEST(name) main(int argc, char **argv)
 #define ok(condition, msg)    \ #define ok(condition, msg)    \
     do { if(!(condition)) {  \     do { if(!(condition)) {  \
Line 46 
Line 67 
  
 static void trace(const char *s, ...) static void trace(const char *s, ...)
 { {
     va_list elipsis;      va_list ellipsis;
     va_start (elipsis, s);      va_start (ellipsis, s);
     vprintf(s, elipsis);      vprintf(s, ellipsis);
     va_end(elipsis);      va_end(ellipsis);
 } }
  
 #endif #endif
  
 #include <winerror.h>  
 #include <fdi.h>  
 #include <fcntl.h>  
 #include "tvfs.h"  
 #include "data.h"  
   
 /* Do malloc and free output debug messages? /* Do malloc and free output debug messages?
 #define DEBUG_ALLOC #define DEBUG_ALLOC
 #define VERBOSE #define VERBOSE
Line 153 
Line 168 
         }         }
         case fdintCLOSE_FILE_INFO:         case fdintCLOSE_FILE_INFO:
         {         {
             char filebuf[256];  
             int result;  
             #ifdef VERBOSE             #ifdef VERBOSE
             trace(             trace(
                 "fdintCLOSE_FILE:\n"                 "fdintCLOSE_FILE:\n"
Line 322 
Line 335 
         NULL,         NULL,
         NULL);         NULL);
  
     /* Filename when extracted is ./<filename> */  
     sprintf(name_file_path, "./%s", name_README);  
     result = tvfs_compare(name_file_path, file_README, size_README);  
     if (result)  
         trace ("File %s compare failed!\n",name_file_path);  
   
     sprintf(name_file_path, "./%s", name_lgpl_txt);  
     result = tvfs_compare(name_file_path, file_lgpl_txt, size_lgpl_txt);  
     if (result)  
         trace ("File %s compare failed!\n",name_file_path);  
  
     tvfs_free();     tvfs_free();
  
Line 344 
Line 347 
     trace("Ending TestDestroy()\n");     trace("Ending TestDestroy()\n");
 } }
  
 START_TEST(paths)  START_TEST(cabinet_fdi)
 { {
     TestCreate();     TestCreate();
     TestInfo();     TestInfo();


Legend:
Removed from v.2.11  
changed lines
  Added in v.2.13

Rizwan Kassim
Powered by
ViewCVS 0.9.2