(file) Return to wsock32_main.c CVS log (file) (dir) Up to [RizwankCVS] / wine4 / wine / dlls / wsock32 / tests

Diff for /wine4/wine/dlls/wsock32/tests/wsock32_main.c between version 1.2 and 1.3

version 1.2, 2005/02/04 08:39:07 version 1.3, 2005/02/06 23:13:24
Line 1 
Line 1 
 /* /*
  * Unit tests for named pipe functions in Wine   * Unit tests for 32-bit socket functions in Wine
  *  *
  * Copyright (c) 2002 Dan Kegel   * Copyright (c) 2005 Thomas Kho, Fredy Garcia, Douglas Rosenberg
  *  *
  * This library is free software; you can redistribute it and/or  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public  * modify it under the terms of the GNU Lesser General Public
Line 19 
Line 19 
  */  */
  
 #include <assert.h> #include <assert.h>
 #include <stdarg.h>  
 #include <stdlib.h>  
 #include <stdio.h> #include <stdio.h>
 #include <time.h>  
  
 #include <windef.h>  #include <windows.h>
 #include <winbase.h>  #include <msvcrt/process.h>
 #include <winsock.h>  #include <winsock2.h>
  
 #ifndef STANDALONE #ifndef STANDALONE
 #include "wine/test.h" #include "wine/test.h"
Line 45 
Line 42 
 #define todo_wine #define todo_wine
 #endif #endif
  
 #include <wtypes.h>  //#include <wtypes.h>
 #include <winerror.h>  //#include <winerror.h>
  
 static void test_NamedPipe_2(void) static void test_NamedPipe_2(void)
 { {
     // something simple     // something simple
     printf("Hello, Worldh\n");      printf("Hello, World\n");
       //while(1)
               printf("Main Thread\n");
     //ok(SetEvent( alarm_event ), "SetEvent\n");     //ok(SetEvent( alarm_event ), "SetEvent\n");
     //CloseHandle( alarm_event );     //CloseHandle( alarm_event );
     //trace("test_NamedPipe_2 returning\n");     //trace("test_NamedPipe_2 returning\n");
 } }
  
   static void test_Initialization(void)
   {
       // initialize application
       WSADATA mywsadata;
       int wsastartup_result = WSAStartup(MAKEWORD(2,2), &mywsadata);
       ok((wsastartup_result != NO_ERROR), "Error in WSAStartup()");
   
   }
   
   void SampleThread1()
   {
       while(1)
       {
           printf("Thread 1\n");
       }
   }
   
   void SampleThread2()
   {
       while(1)
       {
           printf("Thread 2\n");
       }
   }
   
 START_TEST(wsock32_main) START_TEST(wsock32_main)
 { {
       //_beginthread( SampleThread1, 0, NULL );
       //_beginthread( SampleThread2, 0, NULL );
     trace("simple test:\n");     trace("simple test:\n");
       test_Initialization();
     //test_DisconnectNamedPipe();     //test_DisconnectNamedPipe();
     //trace("test 2 of 4:\n");     //trace("test 2 of 4:\n");
     //test_CreateNamedPipe_instances_must_match();     //test_CreateNamedPipe_instances_must_match();


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Rizwan Kassim
Powered by
ViewCVS 0.9.2