<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi everyone,<br>
<br>
I installed erlang/otp 19.2 today on a Ubuntu laptop, following
carefully instructions.<br>
When executing suite test, one failed. I have no idea if that
particular test is important or not as I'm a newbee for Erlang. But
an error is never normal, so I share.<br>
Nevertheless I finished the installation, without knowing if I will
get into trouble at sometime or not because of that.<br>
<br>
Of course I'm available to give as many information as needed and
proceed with any test or whatever if it may helps.<br>
<br>
So, Ubuntu 16.04 up to date, core i7.<br>
Erlang downloaded: <a class="moz-txt-link-freetext" href="http://erlang.org/download/otp_src_19.2.tar.gz">http://erlang.org/download/otp_src_19.2.tar.gz</a><br>
<br>
The command issued to launch tests:<br>
<pre><code>$ERL_TOP/bin/erl -s ts install -s ts smoke_test batch -s init stop
</code></pre>
<pre><font size="+1"><code>And the log file generated:</code></font>
<code></code></pre>
<code>=== Suite started at 2017-02-06 13:27:48<br>
=== Starting test, 6 test cases<br>
=cases 6<br>
=user olivier<br>
=host Kroston<br>
=hosts Kroston <br>
=emulator_vsn 8.2<br>
=emulator beam<br>
=otp_release 19<br>
=started 2017-02-06 13:27:48<br>
=case inet_SUITE:init_per_suite<br>
=logfile inet_suite.init_per_suite.html<br>
=started 2017-02-06 13:27:48<br>
=ended 2017-02-06 13:27:48<br>
=result ok<br>
=elapsed 1.0e-6<br>
=case inet_SUITE:t_gethostbyaddr<br>
=logfile inet_suite.t_gethostbyaddr.html<br>
=started 2017-02-06 13:27:48<br>
=ended 2017-02-06 13:27:48<br>
=result auto_skipped: {require_failed,<br>
{not_available,test_host_ipv4_only}}<br>
=== *** SKIPPED test case 1 of 6 ***<br>
=case inet_SUITE:t_gethostbyname<br>
=logfile inet_suite.t_gethostbyname.html<br>
=started 2017-02-06 13:27:48<br>
=ended 2017-02-06 13:27:48<br>
=result auto_skipped: {require_failed,<br>
{not_available,test_host_ipv4_only}}<br>
=== *** SKIPPED test case 2 of 6 ***<br>
=case inet_SUITE:t_gethostbyaddr_v6<br>
=logfile inet_suite.t_gethostbyaddr_v6.html<br>
=started 2017-02-06 13:27:48<br>
=ended 2017-02-06 13:27:48<br>
=result auto_skipped: {require_failed,<br>
{not_available,test_host_ipv6_only}}<br>
=== *** SKIPPED test case 3 of 6 ***<br>
=case inet_SUITE:t_gethostbyname_v6<br>
=logfile inet_suite.t_gethostbyname_v6.html<br>
=started 2017-02-06 13:27:48<br>
=ended 2017-02-06 13:27:48<br>
=result auto_skipped: {require_failed,<br>
{not_available,test_host_ipv6_only}}<br>
=== *** SKIPPED test case 4 of 6 ***<br>
=case inet_SUITE:t_gethostnative<br>
=logfile inet_suite.t_gethostnative.html<br>
=started 2017-02-06 13:27:48<br>
=ended 2017-02-06 13:27:49<br>
=result failed: {{case_clause,{error,try_again}},<br>
[{inet_SUITE,t_gethostnative,1,<br>
[{file,"inet_SUITE.erl"},{line,624}]},<br>
{test_server,ts_tc,3,<br>
[{file,"test_server.erl"},{line,1529}]},<br>
{test_server,run_test_case_eval1,6,<br>
[{file,"test_server.erl"},{line,1045}]},<br>
{test_server,run_test_case_eval,9,<br>
[{file,"test_server.erl"},{line,977}]}]}, [{inet_SUITE,<br>
t_gethostnative,<br>
624},<br>
{test_server,<br>
ts_tc,<br>
1529},<br>
{test_server,<br>
run_test_case_eval1,<br>
1045},<br>
{test_server,<br>
run_test_case_eval,<br>
977}]<br>
=== *** FAILED test case 5 of 6 ***<br>
=case inet_SUITE:getifaddrs<br>
=logfile inet_suite.getifaddrs.html<br>
=started 2017-02-06 13:27:49<br>
=ended 2017-02-06 13:27:49<br>
=result ok<br>
=elapsed 0.001917<br>
=case inet_SUITE:end_per_suite<br>
=logfile inet_suite.end_per_suite.html<br>
=started 2017-02-06 13:27:49<br>
=ended 2017-02-06 13:27:49<br>
=result ok<br>
=elapsed 0.0<br>
=group_time 0.335s<br>
=== TEST COMPLETE, 1 ok, 1 failed, 4 skipped of 6 test cases<br>
<br>
=finished 2017-02-06 13:27:49<br>
=failed 1<br>
=successful 1<br>
=user_skipped 0<br>
=auto_skipped 4<br>
<br>
Issue is as mentioned at line 624. Here is the test case with that
line:<br>
<br>
</code>
<pre><a name="620"> 620: <b>t_gethostnative</b>(Config) when is_list(Config) ->
</a><a name="621"> 621: %% this will result in 26 bytes sent which causes problem in Windows
</a><a name="622"> 622: %% if the port-program has not assured stdin to be read in BINARY mode
</a><a name="623"> 623: %% OTP-2555
</a><a name="t_gethostnative-last_expr"></a><a name="624"> 624: <b> case inet_gethost_native:gethostbyname</b>(
</a><a name="625"> 625: "a23456789012345678901234") of
</a><a name="626"> 626: {error,notfound} ->
</a><a name="627"> 627: ok;
</a><a name="628"> 628: {error,no_data} ->
</a><a name="629"> 629: ok
</a><a name="630"> 630: end.</a></pre>
Thanks,<br>
<br>
Olivier
</body>
</html>