Commit f9c693df authored by Richard Levitte's avatar Richard Levitte
Browse files

Be more verbose when debugging is on



It's near impossible to figure out what goes wrong with the execution
of sub-commands otherwise.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 02f7114a
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -178,9 +178,11 @@ sub start

    $pid = fork();
    if ($pid == 0) {
        if (!$self->debug) {
            open(STDOUT, ">", File::Spec->devnull())
                or die "Failed to redirect stdout: $!";
            open(STDERR, ">&STDOUT");
        }
        my $execcmd = $self->execute
            ." s_server -no_comp -rev -engine ossltest -accept "
            .($self->server_port)
@@ -227,9 +229,11 @@ sub clientstart
    if ($self->execute) {
        my $pid = fork();
        if ($pid == 0) {
            if (!$self->debug) {
                open(STDOUT, ">", File::Spec->devnull())
                    or die "Failed to redirect stdout: $!";
                open(STDERR, ">&STDOUT");
            }
            my $execcmd = "echo test | ".$self->execute
                 ." s_client -engine ossltest -connect "
                 .($self->proxy_addr).":".($self->proxy_port);