diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-11-19 21:56:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-11-19 21:56:11 +0000 |
commit | 4741e64c89346383c4d56a170cfeb53f0898694d (patch) | |
tree | b2eae4e16728af4a361cf3e3378e75e4fdcec258 /tests | |
parent | 0b489c7e611bc0bb5e224fc5e680fb7ae57a0557 (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
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.pl | 2 |
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 |