/* * Unit tests for named pipe functions in Wine * * Copyright (c) 2002 Dan Kegel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include #include #include #include #include #include #ifndef STANDALONE #include "wine/test.h" #else #include #define START_TEST(name) main(int argc, char **argv) #define ok(condition, msg) \ do { \ if(!(condition)) \ { \ fprintf(stderr,"failed at %d\n",__LINE__); \ exit(0); \ } \ } while(0) #define todo_wine #endif #include #include static void test_NamedPipe_2(void) { // something simple printf("Hello, Worldh\n"); //ok(SetEvent( alarm_event ), "SetEvent\n"); //CloseHandle( alarm_event ); //trace("test_NamedPipe_2 returning\n"); } START_TEST(wsock32_main) { trace("simple test:\n"); //test_DisconnectNamedPipe(); //trace("test 2 of 4:\n"); //test_CreateNamedPipe_instances_must_match(); //trace("test 3 of 4:\n"); test_NamedPipe_2(); //trace("test 4 of 4:\n"); //test_CreateNamedPipe(PIPE_TYPE_BYTE); //trace("all tests done\n"); //test_CreateNamedPipe(PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE); trace("all tests done\n"); }