mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-09 01:01:11 +08:00
Fix test running under valgrind
This commit is contained in:
parent
6113eac95a
commit
41db41761d
@ -50,7 +50,10 @@ def do_test(port):
|
|||||||
for s in socks:
|
for s in socks:
|
||||||
s.close()
|
s.close()
|
||||||
|
|
||||||
limit = 25000000
|
if os.environ.get('MOSQ_USE_VALGRIND') is None:
|
||||||
|
limit = 25000000
|
||||||
|
else:
|
||||||
|
limit = 120000000
|
||||||
if mem > limit:
|
if mem > limit:
|
||||||
raise mosq_test.TestError(f"Process memory {mem} greater than limit of {limit}")
|
raise mosq_test.TestError(f"Process memory {mem} greater than limit of {limit}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user