[erlang-bugs] Erlang Common Test: {shuffle {seed}} not working

Walter Weinmann walter.weinmann@REDACTED
Fri Feb 3 13:54:06 CET 2017


Peter thanks for the help - I agree with the documentation issue.

Best regards
Walter


On 3 February 2017 at 13:51, Peter Andersson E <
peter.e.andersson@REDACTED> wrote:

> Hi Walter,
>
>
>
> Please see the documentation for function random:seed/1. (
> http://erlang.org/doc/man/random.html#seed-1)
>
>
>
> The CT User’s Guide really should refer to this page to avoid confusion.
>
>
>
> Best regards,
>
> Peter
>
>
>
> Ericsson AB, Erlang/OTP
>
>
>
> *From:* erlang-bugs-bounces@REDACTED [mailto:erlang-bugs-bounces@
> erlang.org] *On Behalf Of *Walter Weinmann
> *Sent:* den 3 februari 2017 13:38
> *To:* Lars Hesel Christensen <lars@REDACTED>
> *Cc:* erlang-bugs <erlang-bugs@REDACTED>
> *Subject:* Re: [erlang-bugs] Erlang Common Test: {shuffle {seed}} not
> working
>
>
>
> Thanks Lars - got it wrong with the docs. But question, what is the
> meaning of these three integers?
>
>
>
> On 3 February 2017 at 13:07, Lars Hesel Christensen <lars@REDACTED>
> wrote:
>
> Hi Walter,
>
> According to the ct docs (http://erlang.org/doc/man/common_test.html)
> the shuffle seed should be on the form '{integer(),integer(),integer()}'.
>
> Cheers,
> Lars
>
>
> On 02/02/2017 05:30 PM, Walter Weinmann wrote:
> > OS version:     Ubuntu 16.10
> > Erlang version: Erlang/OTP 19 [erts-8.2] [source-ac2de40] [64-bit]
> > [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
> >
> > Attached a small example file, the result in raw.log is:
> >
> > --- Test run on 2017/02/02 17:23:30 ---
> > Converting "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/." to
> > "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress" and re-inserting
> > with add_patha/1
> >
> >
> > Common Test v1.13 starting (cwd is
> > /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress)
> >
> >
> > Common Test: Running make in test directories...
> > Including the following directories:
> > "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/include"
> > Recompile: my_shuffle_SUITE
> >
> > CWD set to:
> > "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/
> logs/ct_run.test@REDACTED"
> >
> > TEST INFO: 1 test(s), 1 suite(s)
> >
> > Cover compiling 2 modules - this may take some time... done
> >
> > Testing kvs_stress_idea.kvs_stress.my_shuffle_SUITE: Starting test (with
> > repeated test cases)
> > EXIT, reason {function_clause,
> >
> >  [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
> >                   {test_server_ctrl,shuffle_cases,3,
> >                       [{file,"test_server_ctrl.erl"},{line,3175}]},
> >                   {test_server_ctrl,run_test_cases_loop,5,
> >                       [{file,"test_server_ctrl.erl"},{line,2591}]},
> >                   {test_server_ctrl,run_test_cases,3,
> >                       [{file,"test_server_ctrl.erl"},{line,2150}]},
> >                   {test_server_ctrl,ts_tc,3,
> >                       [{file,"test_server_ctrl.erl"},{line,1209}]},
> >                   {test_server_ctrl,init_tester,10,
> >
> > [{file,"test_server_ctrl.erl"},{line,1163}]}]}Cover analysing... done
> >
> > Updating
> > /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/index.html ...
> > done
> > Updating
> > /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/all_runs.html
> > ... done
> >
> >
> > Test run failed! Reason:
> > {'EXIT',
> >     {function_clause,
> >         [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
> >          {test_server_ctrl,shuffle_cases,3,
> >              [{file,"test_server_ctrl.erl"},{line,3175}]},
> >          {test_server_ctrl,run_test_cases_loop,5,
> >              [{file,"test_server_ctrl.erl"},{line,2591}]},
> >          {test_server_ctrl,run_test_cases,3,
> >              [{file,"test_server_ctrl.erl"},{line,2150}]},
> >          {test_server_ctrl,ts_tc,3,
> >              [{file,"test_server_ctrl.erl"},{line,1209}]},
> >          {test_server_ctrl,init_tester,10,
> >              [{file,"test_server_ctrl.erl"},{line,1163}]}]}}
> >
> >
> >
>
> > _______________________________________________
> > erlang-bugs mailing list
> > erlang-bugs@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-bugs
> >
>
>
>
>
>


____
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20170203/324c820c/attachment.htm>


More information about the erlang-bugs mailing list