[erlang-patches] Fix I/O-protocol handling in eunit

Yuki Ito <>
Tue Jun 18 17:33:31 CEST 2013


Thank you.


2013/6/18 Fredrik <>

>  On 06/18/2013 04:47 PM, Fredrik wrote:
>
> On 05/13/2013 10:21 AM, Fredrik wrote:
>
> On 05/10/2013 11:09 PM, Yuki Ito wrote:
>
>  Hi,
>
>  Some io_requests, getopts, {get_geometry, rows} and {get_geometry,
> columns} in eunit raises unexpected error.
>
>  For example,
>
>  $ cat my_tests.erl
>  -module(my_tests).
> -include_lib("eunit/include/eunit.hrl").
>
>  my_test() ->
>   io:getopts().
>
>  1> c(my_tests).
> {ok,my_tests}
>  2> eunit:test(my_tests).
> my_tests: my_test (module 'my_tests')...*skipped*
>  undefined
> *unexpected termination of test process*
> ::{{badmatch,{error,{error,enotsup},[]}},
>    [{eunit_proc,io_request,4,[{file,"eunit_proc.erl"},{line,614}]},
>
>  {eunit_proc,group_leader_loop,3,[{file,"eunit_proc.erl"},{line,584}]}]}
>
>         =======================================================
>          Failed: 0.  Skipped: 0.  Passed: 0.
>           One or more tests were cancelled.
>          error
>          3>
>          =ERROR REPORT==== 11-May-2013::05:51:35 ===
>          Error in process <0.49.0> with exit value:
> {{badmatch,{error,{error,enotsup},[]}},[{eunit_proc,io_request,4,[{file,"eunit_proc.erl"},{line,614}]},{eunit_proc,group_leader_loop,3,[{file,"eunit_proc.erl"},{line,584}]}]}
>
>
>  git fetch :mururu/otp.git fix_eunit_io_protocol
> https://github.com/mururu/otp/compare/erlang:maint...fix_eunit_io_protocol
>
> https://github.com/mururu/otp/compare/erlang:maint...fix_eunit_io_protocol.patch
>
>  Thanks.
>
>
> _______________________________________________
> erlang-patches mailing ://erlang.org/mailman/listinfo/erlang-patches
>
>  Hello Yuki,
> I've fetched your branch and it is now located in the 'pu' branch for
> further testing.
> Thanks,
>
> --
>
> BR Fredrik Gustafsson
> Erlang OTP Team
>
>
>
> _______________________________________________
> erlang-patches mailing ://erlang.org/mailman/listinfo/erlang-patches
>
>  Hello,
> Could you please provide a testcase for this?
>
> --
>
> BR Fredrik Gustafsson
> Erlang OTP Team
>
>
>
> _______________________________________________
> erlang-patches mailing ://erlang.org/mailman/listinfo/erlang-patches
>
>  I just realized that eunit does not have any tests.
> Skip it, I will put it into building on more platforms when R16B01 has
> been released..
>
>
> --
>
> BR Fredrik Gustafsson
> Erlang OTP Team
>
>


-- 
伊藤友気 Yuki Ito

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130619/14a64d9c/attachment.html>


More information about the erlang-patches mailing list