mirror of
https://github.com/curl/curl.git
synced 2025-09-19 18:42:42 +03:00
runtests.pl: removed <precommand> feature
This hasn't been used in over a decade. <precheck> can still be used to run commands before the main test.
This commit is contained in:
parent
c2227dae53
commit
01f9487967
|
@ -3594,21 +3594,6 @@ sub singletest {
|
||||||
my $dumped_core;
|
my $dumped_core;
|
||||||
my $cmdres;
|
my $cmdres;
|
||||||
|
|
||||||
# Apr 2007: precommand isn't being used and could be removed
|
|
||||||
my @precommand= getpart("client", "precommand");
|
|
||||||
if($precommand[0]) {
|
|
||||||
# this is pure perl to eval!
|
|
||||||
my $code = join("", @precommand);
|
|
||||||
eval $code;
|
|
||||||
if($@) {
|
|
||||||
logmsg "perl: $code\n";
|
|
||||||
logmsg "precommand: $@";
|
|
||||||
stopservers($verbose);
|
|
||||||
timestampskippedevents($testnum);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if($gdbthis) {
|
if($gdbthis) {
|
||||||
my $gdbinit = "$TESTDIR/gdbinit$testnum";
|
my $gdbinit = "$TESTDIR/gdbinit$testnum";
|
||||||
open(GDBCMD, ">$LOGDIR/gdbcmd");
|
open(GDBCMD, ">$LOGDIR/gdbcmd");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user