gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r161589 - gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py
Date Sat, 16 Apr 2005 18:28:34 GMT
Author: leosimons
Date: Sat Apr 16 11:28:32 2005
New Revision: 161589

URL: http://svn.apache.org/viewcvs?view=rev&rev=161589
Log:
Disable process cleanup test.

* pygump/python/gump/test/testUtilExecutor.py: this still is not always consistently run last,
so disable the process cleanup at-the-end testing.

Modified:
    gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py

Modified: gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py?view=diff&r1=161588&r2=161589
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py Sat Apr 16 11:28:32 2005
@@ -51,22 +51,25 @@
         result = Popen(["pwd"], stdout=PIPE).communicate()[0]
         self.assertNotEqual("", result)
 
+        # Still not always running last. Need to fix the testrunner, until
+        # then, disable this...
+        #
         # This test can only be run once, since after the call to
         # "clean_up_processes" all future invocations of subprocesses
         # will fail. Therefore this class and its methods are awkwardly
         # named (the ZZZ prefix) so we "ensure" they run last. It's
         # ugly, I know.
-        processes = []
-        for i in range(0,10):
-            processes.append(Popen(["cat"], stdin=PIPE, stdout=PIPE))
-            
-        clean_up_processes(5)
-        for p in processes:
-            try:
-                pid, sts = os.waitpid(p.pid, os.WNOHANG)
-                self.assert_(os.WIFSIGNALED(exitcode), "Process should've been signalled...")
-            except:
-                pass
+        #processes = []
+        #for i in range(0,10):
+        #    processes.append(Popen(["cat"], stdin=PIPE, stdout=PIPE))
+        #    
+        #clean_up_processes(5)
+        #for p in processes:
+        #    try:
+        #        pid, sts = os.waitpid(p.pid, os.WNOHANG)
+        #        self.assert_(os.WIFSIGNALED(exitcode), "Process should've been signalled...")
+        #    except:
+        #        pass
         
 # this is used by testrunner.py to determine what tests to run
 def test_suite():



Mime
View raw message