Merge r9103 and r9105 (add --ignore-fn to Massif) from the Darwin branch.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9567 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in
index 8bcb050..15c53f1 100755
--- a/tests/vg_regtest.in
+++ b/tests/vg_regtest.in
@@ -51,7 +51,8 @@
 # following lines, in any order:
 #   - prog:   <prog to run>                         (compulsory)
 #   - args:   <args for prog>                       (default: none)
-#   - vgopts: <Valgrind options>                    (default: none)
+#   - vgopts: <Valgrind options>                    (default: none;
+#                                                    multiple are allowed)
 #   - stdout_filter: <filter to run stdout through> (default: none)
 #   - stderr_filter: <filter to run stderr through> (default: ./filter_stderr)
 #   - prereq: <prerequisite command>                (default: none)
@@ -216,7 +217,7 @@
         if      ($line =~ /^\s*#/ || $line =~ /^\s*$/) {
 	    next;
 	} elsif ($line =~ /^\s*vgopts:\s*(.*)$/) {
-            $vgopts = $1;
+            $vgopts = $vgopts . " " . $1;   # Nb: Make sure there's a space!
         } elsif ($line =~ /^\s*prog:\s*(.*)$/) {
             $prog = validate_program(".", $1, 0, 0);
         } elsif ($line =~ /^\s*args:\s*(.*)$/) {