[complement-svn] SF.net SVN: complement: [1623] trunk/complement/explore/test/sockios
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-07-18 09:49:48
|
Revision: 1623 http://svn.sourceforge.net/complement/?rev=1623&view=rev Author: complement Date: 2007-07-18 02:49:45 -0700 (Wed, 18 Jul 2007) Log Message: ----------- 'mass write' test removed --- it really was not completed and do nothing Modified Paths: -------------- trunk/complement/explore/test/sockios/Makefile.inc trunk/complement/explore/test/sockios/sockios_test_suite.cc Removed Paths: ------------- trunk/complement/explore/test/sockios/client-mw.cc trunk/complement/explore/test/sockios/client-mw.h Modified: trunk/complement/explore/test/sockios/Makefile.inc =================================================================== --- trunk/complement/explore/test/sockios/Makefile.inc 2007-07-18 09:42:23 UTC (rev 1622) +++ trunk/complement/explore/test/sockios/Makefile.inc 2007-07-18 09:49:45 UTC (rev 1623) @@ -1,6 +1,6 @@ # -*- makefile -*- Time-stamp: <07/07/18 08:37:31 ptr> PRGNAME = sockios_ut -SRC_CC = ConnectionProcessor.cc message.cc client-mw.cc \ +SRC_CC = ConnectionProcessor.cc message.cc \ client-wc.cc close_socket.cc bytes_in_socket.cc bytes_in_socket2.cc \ names.cc sockios_test.cc sockios_test_suite.cc unit_test.cc Deleted: trunk/complement/explore/test/sockios/client-mw.cc =================================================================== --- trunk/complement/explore/test/sockios/client-mw.cc 2007-07-18 09:42:23 UTC (rev 1622) +++ trunk/complement/explore/test/sockios/client-mw.cc 2007-07-18 09:49:45 UTC (rev 1623) @@ -1,51 +0,0 @@ -// -*- C++ -*- Time-stamp: <05/12/01 20:29:05 ptr> - -/* - * - * Copyright (c) 2002, 2003 - * Petr Ovtchenkov - * - * Licensed under the Academic Free License Version 2.1 - * - * This material is provided "as is", with absolutely no warranty expressed - * or implied. Any use is at your own risk. - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies and - * that both that copyright notice and this permission notice appear - * in supporting documentation. - */ - -#include <exam/suite.h> - -#include <string> -#include <sockios/sockstream> -#include <iostream> -#include <iomanip> -#include <mt/xmt.h> - -#include "client-mw.h" -#include "message.h" - -using namespace std; -using namespace xmt; - -int EXAM_IMPL(ClientMassWrite::client_proc) -{ - using namespace test_area; - - EXAM_MESSAGE( "Client start" ); - for ( int i_close = 0; i_close < ni2; ++i_close ) { - std::sockstream sock( "localhost", ::port ); - - for ( int i_send = 0; i_send < ni1; ++i_send ) { - sock.write( bin_buff1, bin_buff1_size ); - } - - EXAM_CHECK( sock.good() ); - } - EXAM_MESSAGE( "Client end" ); - - return EXAM_RESULT; -} Deleted: trunk/complement/explore/test/sockios/client-mw.h =================================================================== --- trunk/complement/explore/test/sockios/client-mw.h 2007-07-18 09:42:23 UTC (rev 1622) +++ trunk/complement/explore/test/sockios/client-mw.h 2007-07-18 09:49:45 UTC (rev 1623) @@ -1,33 +0,0 @@ -// -*- C++ -*- Time-stamp: <05/12/01 20:29:26 ptr> - -/* - * - * Copyright (c) 2002, 2003 - * Petr Ovtchenkov - * - * Licensed under the Academic Free License Version 2.1 - * - * This material is provided "as is", with absolutely no warranty expressed - * or implied. Any use is at your own risk. - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies and - * that both that copyright notice and this permission notice appear - * in supporting documentation. - */ - -#ifndef __ClientMassWrite_h -#define __ClientMassWrite_h - -#include <exam/suite.h> - -// Clients simulator - -class ClientMassWrite -{ - public: - static int EXAM_DECL(client_proc); -}; - -#endif // __ClientMassWrite_h Modified: trunk/complement/explore/test/sockios/sockios_test_suite.cc =================================================================== --- trunk/complement/explore/test/sockios/sockios_test_suite.cc 2007-07-18 09:42:23 UTC (rev 1622) +++ trunk/complement/explore/test/sockios/sockios_test_suite.cc 2007-07-18 09:49:45 UTC (rev 1623) @@ -36,34 +36,6 @@ return i++; } -#include "client-mw.h" - -int EXAM_IMPL(test_mass_processing_poll) -{ -#ifndef __FIT_NO_POLL - using namespace test_area; - - EXAM_REQUIRE( bin_buff1_size == 0 ); // test integrity of test suite - EXAM_REQUIRE( bin_buff1 == 0 ); // test integrity of test suite - - bin_buff1_size = 48; - bin_buff1 = new char [bin_buff1_size]; - EXAM_REQUIRE( bin_buff1 != 0 ); - generate_n( bin_buff1, bin_buff1_size, generator_1 ); - - ni1 = 10; - ni2 = 5; - - delete bin_buff1; - bin_buff1 = 0; - bin_buff1_size = 0; -#else - EXAM_ERROR( "poll-based sockmgr not implemented on this platform" ); -#endif - - return EXAM_RESULT; -} - int EXAM_IMPL(test_shared_socket) { #ifndef __FIT_NO_POLL @@ -169,7 +141,6 @@ t.add( &trivial_sockios_test::listen_iface, trivial_test, "listen_iface", tc[0] ); - t.add( test_mass_processing_poll, "test_mass_processing_poll" ); t.add( srv_close_connection_test, "srv_close_connection_test" ); t.add( test_shared_socket, "test_shared_socket" ); t.add( test_client_close_socket, "test_client_close_socket" ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |