cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH 0/2] runtests.pl: Fix LD_PRELOAD with ASAN libs

From: Peter Wu <peter_at_lekensteyn.nl>
Date: Thu, 13 Nov 2014 15:45:19 +0100

Heya,

Another round of patches around the test suite. This time the patches
fix tests that run under LD_PRELOAD=libhostname.so and when cURL is
built with Address Sanitizer (-fsanitize=address).

The first patch ("runtests.pl: simplify command environment handling")
actually contains three changes:
 - Convert from shell commands to an array of arguments.
 - Implement a subset of IPC::Run as AIX does not have this module.
 - Implement a custom subroutine that splits a shell command into an
   array. This is done because Text::ParseWords is broken and does not
   handle some cases correctly.

The second patch further restricts the scope of environment variables.

Reviews / comments are appreciated!

Kind regards,
Peter

Peter Wu (2):
  runtests.pl: safer system() calls, fix LD_PRELOAD
  runtests.pl: simplify command environment handling

 tests/runtests.pl | 446 +++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 287 insertions(+), 159 deletions(-)

-- 
2.1.2
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-13