<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">Hi, </div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"><br></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
Some io_requests, getopts, {get_geometry, rows} and {get_geometry, columns} in eunit raises unexpected error.</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"><br></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
For example,</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"><br></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">$ cat my_tests.erl</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
-module(my_tests).</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">-include_lib("eunit/include/eunit.hrl").</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
<br></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">my_test() -></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"> io:getopts().</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
<br></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">1> c(my_tests).</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">{ok,my_tests}</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
2> eunit:test(my_tests).</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">my_tests: my_test (module 'my_tests')...*skipped*</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
undefined</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">*unexpected termination of test process*</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">::{{badmatch,{error,{error,enotsup},[]}},</div>
<div style="font-family:arial,sans-serif;font-size:13.63636302947998px"> [{eunit_proc,io_request,4,[{file,"eunit_proc.erl"},{line,614}]},</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
{eunit_proc,group_leader_loop,3,[{file,"eunit_proc.erl"},{line,584}]}]}</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"><br></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
=======================================================</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"> Failed: 0. Skipped: 0. Passed: 0.</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
One or more tests were cancelled.</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"> error</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"> 3> </div>
<div style="font-family:arial,sans-serif;font-size:13.63636302947998px"> =ERROR REPORT==== 11-May-2013::05:51:35 ===</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"> 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}]}]}</div>
<div style="font-family:arial,sans-serif;font-size:13.63636302947998px"><br></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"><br></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">
git fetch git@github.com:mururu/otp.git fix_eunit_io_protocol</div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px"><a href="https://github.com/mururu/otp/compare/erlang:maint...fix_eunit_io_protocol" target="_blank">https://github.com/mururu/otp/compare/erlang:maint...fix_eunit_io_protocol</a></div>
<div style="font-family:arial,sans-serif;font-size:13.63636302947998px"><a href="https://github.com/mururu/otp/compare/erlang:maint...fix_eunit_io_protocol.patch" target="_blank">https://github.com/mururu/otp/compare/erlang:maint...fix_eunit_io_protocol.patch</a></div>
<div style="font-family:arial,sans-serif;font-size:13.63636302947998px"><br></div><div style="font-family:arial,sans-serif;font-size:13.63636302947998px">Thanks.</div>
</div>