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

 1 rizwank 1.1 /*
 2              * Unit tests for named pipe functions in Wine
 3              *
 4              * Copyright (c) 2002 Dan Kegel
 5              *
 6              * This library is free software; you can redistribute it and/or
 7              * modify it under the terms of the GNU Lesser General Public
 8              * License as published by the Free Software Foundation; either
 9              * version 2.1 of the License, or (at your option) any later version.
10              *
11              * This library is distributed in the hope that it will be useful,
12              * but WITHOUT ANY WARRANTY; without even the implied warranty of
13              * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14              * Lesser General Public License for more details.
15              *
16              * You should have received a copy of the GNU Lesser General Public
17              * License along with this library; if not, write to the Free Software
18              * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19              */
20             
21             #include <assert.h>
22 rizwank 1.1 #include <stdarg.h>
23             #include <stdlib.h>
24             #include <stdio.h>
25             #include <time.h>
26             
27             #include <windef.h>
28             #include <winbase.h>
29             #include <winsock.h>
30             
31             #ifndef STANDALONE
32             #include "wine/test.h"
33             #else
34             #include <assert.h>
35             #define START_TEST(name) main(int argc, char **argv)
36             #define ok(condition, msg) \
37             	do { \
38             		if(!(condition)) \
39             		{ \
40             			fprintf(stderr,"failed at %d\n",__LINE__); \
41             			exit(0); \
42             		} \
43 rizwank 1.1 	} while(0)
44             
45             #define todo_wine
46             #endif
47             
48             #include <wtypes.h>
49             #include <winerror.h>
50             
51             static void test_NamedPipe_2(void)
52             {
53 rizwank 1.2     // something simple
54                 printf("Hello, Worldh\n");
55                 //ok(SetEvent( alarm_event ), "SetEvent\n");
56                 //CloseHandle( alarm_event );
57                 //trace("test_NamedPipe_2 returning\n");
58 rizwank 1.1 }
59             
60             START_TEST(wsock32_main)
61             {
62 rizwank 1.2     trace("simple test:\n");
63                 //test_DisconnectNamedPipe();
64                 //trace("test 2 of 4:\n");
65                 //test_CreateNamedPipe_instances_must_match();
66                 //trace("test 3 of 4:\n");
67 rizwank 1.1     test_NamedPipe_2();
68 rizwank 1.2     //trace("test 4 of 4:\n");
69                 //test_CreateNamedPipe(PIPE_TYPE_BYTE);
70                 //trace("all tests done\n");
71                 //test_CreateNamedPipe(PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE);
72 rizwank 1.1     trace("all tests done\n");
73             }

Rizwan Kassim
Powered by
ViewCVS 0.9.2