[erlang-questions] Bugs in tsung 1.2.2 ts_utils.erl

Arbow <>
Tue Jun 3 11:09:29 CEST 2008


I found tsung 1.2.2 also can't start at Erlang R12B2, so I found this bug:

in ./src/ts_utils.erl:

check_httpd_old_version()->
    case erlang:system_info(version) of
        [$5,$.,Maj] when Maj > $5  ->
            false;
        [$5,$.,Maj, $.,Min] when ( Maj > $5 ) or ((Maj == $5) and Min > $3) ->
            false;
        _  ->
            true
    end.

it return true at R12B2, when it change to

        [$5,$.,Maj, $.,Min] when ( Maj > $5 ) or ((Maj == $5) and (Min
> $3) ) ->
            false;
it works



More information about the erlang-questions mailing list