diff options
author | Monty Brandenberg <monty@lindenlab.com> | 2012-07-12 17:46:53 +0000 |
---|---|---|
committer | Monty Brandenberg <monty@lindenlab.com> | 2012-07-12 17:46:53 +0000 |
commit | d45b2e7caece787dce4be501b103432c0f06c0f2 (patch) | |
tree | 0f386545e330ad0a2cf98ddb96a78ff72995283b /indra/llcorehttp/tests/testrunner.py | |
parent | 7010459f04177aef1875a110b3d33e10c8ec5cad (diff) |
SH-3183 Use valgrind on the library.
Using http_texture_load as the test subject, library looks clean. Did
some better shutdown in the program itself and it looks better. Libcurl
itself is making a lot of noise. Adapted testrunner to run valgrind as
well but the memory allocation tester in the tools themselves grossly
interferes with Valgrind operations.
Diffstat (limited to 'indra/llcorehttp/tests/testrunner.py')
-rw-r--r-- | indra/llcorehttp/tests/testrunner.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llcorehttp/tests/testrunner.py b/indra/llcorehttp/tests/testrunner.py index 5b9beb359b..9a2de71142 100644 --- a/indra/llcorehttp/tests/testrunner.py +++ b/indra/llcorehttp/tests/testrunner.py @@ -168,7 +168,10 @@ def run(*args, **kwds): # executable passed as our first arg, # - [no e] child should inherit this process's environment. debug("Running %s...", " ".join(args)) - rc = os.spawnv(os.P_WAIT, args[0], args) + if kwds.get("use_path", False): + rc = os.spawnvp(os.P_WAIT, args[0], args) + else: + rc = os.spawnv(os.P_WAIT, args[0], args) debug("%s returned %s", args[0], rc) return rc |