qpid-proton git commit: PROTON-1504: disable valgrind for all processes in fdlimit.py test

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

qpid-proton git commit: PROTON-1504: disable valgrind for all processes in fdlimit.py test

aconway-2
Repository: qpid-proton
Updated Branches:
  refs/heads/master e504ce12f -> 8410e2e6e


PROTON-1504: disable valgrind for all processes in fdlimit.py test


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/8410e2e6
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/8410e2e6
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/8410e2e6

Branch: refs/heads/master
Commit: 8410e2e6ecea2e08368a8861aed88c94d49002d7
Parents: e504ce1
Author: Alan Conway <[hidden email]>
Authored: Fri Jun 16 10:55:47 2017 -0400
Committer: Alan Conway <[hidden email]>
Committed: Fri Jun 16 10:55:47 2017 -0400

----------------------------------------------------------------------
 proton-c/src/tests/fdlimit.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/8410e2e6/proton-c/src/tests/fdlimit.py
----------------------------------------------------------------------
diff --git a/proton-c/src/tests/fdlimit.py b/proton-c/src/tests/fdlimit.py
index 28fdecf..5f849b3 100644
--- a/proton-c/src/tests/fdlimit.py
+++ b/proton-c/src/tests/fdlimit.py
@@ -27,8 +27,7 @@ class LimitedBroker(object):
     def __enter__(self):
         with TestPort() as tp:
             self.port = str(tp.port)
-            self.proc = self.test.proc(['prlimit', '-n%d' % self.fdlimit, 'broker', '', self.port],
-                                       skip_valgrind=True)
+            self.proc = self.test.proc(['prlimit', '-n%d' % self.fdlimit, 'broker', '', self.port])
             self.proc.wait_re("listening")
             return self
 
@@ -54,6 +53,10 @@ class FdLimitTest(ProcTestCase):
             self.skipTest("prlimit not available")
         super(FdLimitTest, self).setUp()
 
+    def proc(self, *args, **kwargs):
+        """Skip valgrind for all processes started by this test"""
+        return super(FdLimitTest, self).proc(*args, skip_valgrind=True, **kwargs)
+
     def test_fd_limit_broker(self):
         """Check behaviour when running out of file descriptors on accept"""
         # Not too many FDs but not too few either, some are used for system purposes.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...