1 |
fauli 09/04/29 05:59:10 |
2 |
|
3 |
Added: erlang-13.2-eunit_fix.patch |
4 |
Log: |
5 |
fix runtime crash with eunit, patch found and reported by Sergey Sinkovskiy <glorybox DOT away AT gmail.com> on bug 267329 |
6 |
(Portage version: 2.1.6.11/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-lang/erlang/files/erlang-13.2-eunit_fix.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/files/erlang-13.2-eunit_fix.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/files/erlang-13.2-eunit_fix.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: erlang-13.2-eunit_fix.patch |
15 |
=================================================================== |
16 |
Index: src/eunit_proc.erl |
17 |
=================================================================== |
18 |
--- lib/eunit/src/eunit_proc.erl (revision 339) |
19 |
+++ lib/eunit/src/eunit_proc.erl (working copy) |
20 |
@@ -628,16 +628,28 @@ |
21 |
catch |
22 |
C:T -> {{error, {C,T,erlang:get_stacktrace()}}, Buf} |
23 |
end; |
24 |
+io_request({put_chars, _Enc, Chars}, Buf) -> |
25 |
+ io_request({put_chars, Chars}, Buf); |
26 |
+io_request({put_chars, _Enc, Mod, Func, Args}, Buf) -> |
27 |
+ io_request({put_chars, Mod, Func, Args}, Buf); |
28 |
+io_request({get_chars, _Enc, _Prompt, _N}, Buf) -> |
29 |
+ {eof, Buf}; |
30 |
io_request({get_chars, _Prompt, _N}, Buf) -> |
31 |
{eof, Buf}; |
32 |
-io_request({get_chars, _Prompt, _M, _F, _Xs}, Buf) -> |
33 |
- {eof, Buf}; |
34 |
io_request({get_line, _Prompt}, Buf) -> |
35 |
{eof, Buf}; |
36 |
+io_request({get_line, _Enc, _Prompt}, Buf) -> |
37 |
+ {eof, Buf}; |
38 |
io_request({get_until, _Prompt, _M, _F, _As}, Buf) -> |
39 |
{eof, Buf}; |
40 |
io_request({setopts, _Opts}, Buf) -> |
41 |
{ok, Buf}; |
42 |
+io_request(getopts, Buf) -> |
43 |
+ {error, {error, enotsup}, Buf}; |
44 |
+io_request({get_geometry,columns}, Buf) -> |
45 |
+ {error, {error, enotsup}, Buf}; |
46 |
+io_request({get_geometry,rows}, Buf) -> |
47 |
+ {error, {error, enotsup}, Buf}; |
48 |
io_request({requests, Reqs}, Buf) -> |
49 |
io_requests(Reqs, {ok, Buf}); |
50 |
io_request(_, Buf) -> |