Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run eunit tests using {application, AppName} #6320

Closed
isvilen opened this issue Sep 21, 2022 · 1 comment
Closed

Can't run eunit tests using {application, AppName} #6320

isvilen opened this issue Sep 21, 2022 · 1 comment
Assignees
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS

Comments

@isvilen
Copy link
Contributor

isvilen commented Sep 21, 2022

EUnit fails when running tests using {application, AppName::atom()} test representation.

To Reproduce

1> eunit:test({application, stdlib}).
undefined
*unexpected termination of test process*
::{function_clause,[{proplists,get_bool,
                               [exact_execution,undefined],
                               [{file,"proplists.erl"},{line,307}]},
                    {eunit_data,extract_module_tests,3,
                                [{file,"eunit_data.erl"},{line,581}]},
                    {eunit_data,get_module_tests,2,
                                [{file,"eunit_data.erl"},{line,564}]},
                    {eunit_data,parse,2,[{file,"eunit_data.erl"},{line,343}]},
                    {eunit_data,next,2,[{file,"eunit_data.erl"},{line,174}]},
                    {eunit_data,lookahead,2,
                                [{file,"eunit_data.erl"},{line,532}]},
                    {eunit_data,group,1,[{file,"eunit_data.erl"},{line,485}]},
                    {eunit_data,next,2,[{file,"eunit_data.erl"},{line,174}]}]}

=ERROR REPORT==== 21-Sep-2022::16:25:40.846460 ===
Error in process <0.93.0> with exit value:
{function_clause,[{proplists,get_bool,
                             [exact_execution,undefined],
                             [{file,"proplists.erl"},{line,307}]},
                  {eunit_data,extract_module_tests,3,
                              [{file,"eunit_data.erl"},{line,581}]},
                  {eunit_data,get_module_tests,2,
                              [{file,"eunit_data.erl"},{line,564}]},
                  {eunit_data,parse,2,[{file,"eunit_data.erl"},{line,343}]},
                  {eunit_data,next,2,[{file,"eunit_data.erl"},{line,174}]},
                  {eunit_data,lookahead,2,
                              [{file,"eunit_data.erl"},{line,532}]},
                  {eunit_data,group,1,[{file,"eunit_data.erl"},{line,485}]},
                  {eunit_data,next,2,[{file,"eunit_data.erl"},{line,174}]}]}

=======================================================
  Failed: 0.  Skipped: 0.  Passed: 0.
One or more tests were cancelled.
error

Expected behavior

1> eunit:test({application, stdlib}).
  There were no tests to run.
ok

Affected versions
OTP 25.1

@isvilen isvilen added the bug Issue is reported as a bug label Sep 21, 2022
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Sep 22, 2022
@u3s u3s self-assigned this Sep 22, 2022
dumbbell added a commit to rabbitmq/khepri that referenced this issue Sep 22, 2022
There is a regression in EUnit shipped with Erlang 25.1. This regression
makes `rebar3 eunit` to fail when it loads testsuites. See erlang/otp#6320.

While a fix is committed and a new version of Erlang 25.x is published,
lets pin Erlang 25.0 explicitly.
dumbbell added a commit to rabbitmq/khepri that referenced this issue Sep 22, 2022
There is a regression in EUnit shipped with Erlang 25.1. This regression
makes `rebar3 eunit` to fail when it loads testsuites. See erlang/otp#6320.

While we wait for a fix to be committed and a new version of Erlang 25.x
to be published, let's pin Erlang 25.0 explicitly.
lukebakken added a commit to Kyorai/cuttlefish that referenced this issue Sep 22, 2022
@u3s
Copy link
Contributor

u3s commented Oct 3, 2022

Fix released with OTP-25.1.1
https://github.com/erlang/otp/releases/tag/OTP-25.1.1

@u3s u3s closed this as completed Oct 3, 2022
dumbbell added a commit to rabbitmq/khepri that referenced this issue Oct 7, 2022
We had to do that because EUnit in Erlang 25.1 had a bug which made the
Khepri testsuite crash; see erlang/otp#6320.

The bug was fixed in Erlang 25.1.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

3 participants