From b923dd8d93745d329b643efdb45326db225be5ff Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Tue, 30 Jan 2007 05:42:53 +0000 Subject: cleanup IceStorm tests. --- cpp/test/IceStorm/single/Subscriber.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'cpp/test/IceStorm/single/Subscriber.cpp') diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp index 4234b2c3ab3..2118f49b2b0 100644 --- a/cpp/test/IceStorm/single/Subscriber.cpp +++ b/cpp/test/IceStorm/single/Subscriber.cpp @@ -81,40 +81,9 @@ private: }; typedef IceUtil::Handle SingleIPtr; -void -createLock(const string& name) -{ - int fd = open(name.c_str(), O_CREAT | O_WRONLY | O_EXCL, 0777); - assert(fd != -1); - close(fd); -} - -void -deleteLock(const string& name) -{ -#ifdef _WIN32 - int ret = _unlink(name.c_str()); -#else -# ifndef NDEBUG - int ret = -# endif - unlink(name.c_str()); -#endif - assert(ret != -1); -} - int run(int argc, char* argv[], const CommunicatorPtr& communicator) { - string lockfile = "subscriber.lock"; - - if(argc != 1) - { - lockfile = argv[1]; - } - - createLock(lockfile); - PropertiesPtr properties = communicator->getProperties(); const char* managerProxyProperty = "IceStorm.TopicManager.Proxy"; string managerProxy = properties->getProperty(managerProxyProperty); @@ -185,8 +154,6 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator) (*p)->waitForEvents(); } - deleteLock(lockfile); - return EXIT_SUCCESS; } -- cgit v1.2.3