aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-11-19 21:56:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-11-19 21:56:11 +0000
commit4741e64c89346383c4d56a170cfeb53f0898694d (patch)
treeb2eae4e16728af4a361cf3e3378e75e4fdcec258
parent0b489c7e611bc0bb5e224fc5e680fb7ae57a0557 (diff)
Josef Wolf's extension that allows a $TESTDIR/gdbinit$testnum file that when
you use runtests.pl -g, will be sourced by gdb to allow additional fancy or whatever you see fit
-rwxr-xr-xtests/runtests.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index f44991c6b..8e1cd220b 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2097,9 +2097,11 @@ sub singletest {
}
if($gdbthis) {
+ my $gdbinit = "$TESTDIR/gdbinit$testnum";
open(GDBCMD, ">$LOGDIR/gdbcmd");
print GDBCMD "set args $cmdargs\n";
print GDBCMD "show args\n";
+ print GDBCMD "source $gdbinit\n" if -e $gdbinit;
close(GDBCMD);
}
# run the command line we built