tsung
tsung copied to clipboard
datestr_test failed with erlang 21
trafficstars
I compared the test runs of tsung-1.7.0 between erlang 19 and 21 on OpenBSD/amd64 and there's an extra failure (full logs below).
ts_test_utils: datestr_test...*failed*
in function ts_test_utils:'-datestr_test/0-fun-0-'/0 (src/test/ts_test_utils.erl, line 51)
in call from eunit_test:'-mf_wrapper/2-fun-0-'/2 (eunit_test.erl, line 273)
in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71)
in call from eunit_proc:run_test/1 (eunit_proc.erl, line 510)
in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 335)
in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 493)
in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 435)
in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 325)
**error:{assertEqual,[{module,ts_test_utils},
{line,51},
{expression,"ts_utils : datestr ( { { 2013 , 10 , 17 } , { 19 , 41 , 29 } } )"},
{expected,["2013","10","17",45,"19","41"]},
{value,["2013",49,48,49,55,45,49,57,52,49]}]}
output:<<"">>
/usr/local/bin/erl19 -noshell -pa ./ebin-test -s ts_test_all run -s init stop
=INFO REPORT==== 8-Feb-2021::20:22:34 ===
ts_user_server:(6:<0.358.0>) Starting default user_server
=INFO REPORT==== 8-Feb-2021::20:22:34 ===
ts_user_server:(6:<0.359.0>) ok, started unconfigured
ts_test_config: ifalias_test...*failed*
in function ts_test_config:'-ifalias_test/0-fun-0-'/1 (src/test/ts_test_config.erl, line 227)
**error:{assertEqual,[{module,ts_test_config},
{line,227},
{expression,"Res"},
{expected,[{127,0,0,1}]},
{value,[]}]}
output:<<"">>
[10000," read_file:",18058]
[10000," get all lines (random):",337542]
[10000," get all lines:",261334]
[20," re:",547]
[20," xpath:",32663]
[20," xpath_explicit:",81580]
[20," re_big:",2150]
[20," xpath_big:",115299]
[20," xpath_explicit_big:",95644]
[<<"/index.html">>]
["received 1",{notify,receive,chat}]
["received 2",{notify,send,chat2}]
=======================================================
Failed: 1. Skipped: 0. Passed: 318.
Total test coverage: 22 %
/usr/local/bin/erl21 -noshell -pa ./ebin-test -s ts_test_all run -s init stop
=INFO REPORT==== 8-Feb-2021::20:27:07.668926 ===
ts_user_server:(6:<0.378.0>) Starting default user_server
=INFO REPORT==== 8-Feb-2021::20:27:07.673610 ===
ts_user_server:(6:<0.379.0>) ok, started unconfigured
ts_test_config: ifalias_test...*failed*
in function ts_test_config:'-ifalias_test/0-fun-0-'/1 (src/test/ts_test_config.erl, line 227)
in call from eunit_test:'-mf_wrapper/2-fun-0-'/2 (eunit_test.erl, line 273)
in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71)
in call from eunit_proc:run_test/1 (eunit_proc.erl, line 510)
in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 335)
in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 493)
in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 435)
in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 325)
**error:{assertEqual,[{module,ts_test_config},
{line,227},
{expression,"Res"},
{expected,[{127,0,0,1}]},
{value,[]}]}
output:<<"">>
[10000," read_file:",11229]
[10000," get all lines (random):",407866]
[10000," get all lines:",439633]
[20," re:",2405]
[20," xpath:",87224]
[20," xpath_explicit:",77538]
[20," re_big:",2593]
[20," xpath_big:",109635]
[20," xpath_explicit_big:",96299]
[<<"/index.html">>]
["received 1",{notify,receive,chat}]
["received 2",{notify,send,chat2}]
ts_test_utils: datestr_test...*failed*
in function ts_test_utils:'-datestr_test/0-fun-0-'/0 (src/test/ts_test_utils.erl, line 51)
in call from eunit_test:'-mf_wrapper/2-fun-0-'/2 (eunit_test.erl, line 273)
in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71)
in call from eunit_proc:run_test/1 (eunit_proc.erl, line 510)
in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 335)
in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 493)
in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 435)
in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 325)
**error:{assertEqual,[{module,ts_test_utils},
{line,51},
{expression,"ts_utils : datestr ( { { 2013 , 10 , 17 } , { 19 , 41 , 29 } } )"},
{expected,["2013","10","17",45,"19","41"]},
{value,["2013",49,48,49,55,45,49,57,52,49]}]}
output:<<"">>
=======================================================
Failed: 2. Skipped: 0. Passed: 317.
Total test coverage: 22 %
I think this was fixed with e53a59d16df5a2d3781ef9d4f0171ad0ca5bc931