mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-01 09:24:51 +02:00
erlang: modified wrong testcase.
This commit is contained in:
parent
ba4a971bfa
commit
a4258505a9
@ -282,10 +282,11 @@ basic_test()->
|
|||||||
port_test()->
|
port_test()->
|
||||||
Port = open_port({spawn, "ruby ../test/crosslang.rb"}, [binary]),
|
Port = open_port({spawn, "ruby ../test/crosslang.rb"}, [binary]),
|
||||||
Tests = test_data(),
|
Tests = test_data(),
|
||||||
{[Tests],<<>>} = msgpack:unpack(msgpack:pack([Tests])),
|
S=msgpack:pack([Tests]),
|
||||||
true = port_command(Port, msgpack:pack(Tests) ),
|
true = port_command(Port, S),
|
||||||
|
{[Tests],<<>>} = msgpack:unpack(S),
|
||||||
receive
|
receive
|
||||||
{Port, {data, Data}}-> {Tests, <<>>}=msgpack:unpack(Data)
|
{Port, {data, Data}}-> {[Tests], <<>>}=msgpack:unpack(Data)
|
||||||
after 1024-> ?assert(false) end,
|
after 1024-> ?assert(false) end,
|
||||||
port_close(Port).
|
port_close(Port).
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user