From 3a73862a5229bc53142b19a1608d9b5125908eb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Sun, 16 Sep 2012 08:00:21 +0200
Subject: [PATCH] Don't quote $EMULATOR; allow it to expand to program and
 arguments.

---
 ChangeLog | 3 +++
 run-tests | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 6f16f747..cdac8ae7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-09-16  Niels Möller  <nisse@lysator.liu.se>
 
+	* run-tests (test_program): Don't quote $EMULATOR; allow it to
+	expand to program and arguments (e.g., valgrind).
+
 	* tools/pkcs1-conv.c (convert_public_key): Added missing calls to
 	dsa_public_key_clear and rsa_public_key_clear.
 	(main): Added missing nettle_buffer_clear.
diff --git a/run-tests b/run-tests
index 560cc4e0..e77e6a63 100755
--- a/run-tests
+++ b/run-tests
@@ -44,7 +44,7 @@ test_program () {
   if [ -z "$EMULATOR" ] || head -1 "$1" | grep '^#!' > /dev/null; then
     "$1" $testflags
   else
-    "$EMULATOR" "$1" $testflags
+    $EMULATOR "$1" $testflags
   fi
   case "$?" in
       0)
-- 
GitLab