Skip to content

Commit

Permalink
- change localhost to 127.0.0.1 in chat example to make it work out o…
Browse files Browse the repository at this point in the history
…f box with 1.9.3

- ensure that rewrite of iters handles empty block variable lists properly in 1.9.3
- ExecModeTest now gets a 0 signal as expect in comment; change test to reflect
  • Loading branch information
jhellerstein committed Nov 18, 2016
1 parent 494d786 commit fcba181
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/chat/chat_protocol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ module ChatProtocol
channel :mcast
end

DEFAULT_ADDR = "localhost:12345"
DEFAULT_ADDR = "127.0.0.1:12345"
end
6 changes: 6 additions & 0 deletions lib/bud/rewrite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ def process_call(exp)

def process_iter(exp)
tag, recv, iter_args, body = exp
if (iter_args == 0)
iter_args = [:args]
end
new_body = push_and_process(body)
return s(tag, process(recv), process(iter_args), new_body)
end
Expand Down Expand Up @@ -418,6 +421,9 @@ def initialize(bud_instance)
def process_iter(exp)
tag, recv, iter_args, body = exp
new_body = push_and_process(body)
if (iter_args == 0)
iter_args = [:args]
end
return s(tag, process(recv), process(iter_args), new_body)
end

Expand Down
2 changes: 1 addition & 1 deletion test/tc_execmodes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def kill_child_with_signal(parent_class, signal)
_, status = Process.waitpid2(pid)
assert(!status.signaled?) # Should have caught the signal
assert(status.exited?)
assert_equal(1, status.exitstatus) # XXX: probably should be 0
assert_equal(0, status.exitstatus)
parent.stop
read.close ; write.close
end
Expand Down

0 comments on commit fcba181

Please sign in to comment.