Obsolete
/
libipc-old
Archived
3
0
Fork 0

Remove useless prints.

master
Philippe Pittoli 2023-01-24 00:50:46 +01:00
parent b0cf9638ec
commit 12123b0cb4
1 changed files with 1 additions and 6 deletions

View File

@ -135,7 +135,6 @@ def test_with_wait()
LibIPC.init (pointerof(ctx)) LibIPC.init (pointerof(ctx))
fd : Int32 = 0 fd : Int32 = 0
LibIPC.connect_service(ctx, pointerof(fd), "pong", 4) LibIPC.connect_service(ctx, pointerof(fd), "pong", 4)
pp! fd
LibIPC.write(ctx, fd, "Hello", 5) LibIPC.write(ctx, fd, "Hello", 5)
buflen : LibC::UInt64T = 10 buflen : LibC::UInt64T = 10
@ -146,7 +145,7 @@ def test_with_wait()
LibIPC.timer(ctx, 2000) # Wait at most 2 seconds. LibIPC.timer(ctx, 2000) # Wait at most 2 seconds.
LibIPC.wait(ctx, pointerof(eventtype), pointerof(index), pointerof(fd), buffer.to_unsafe, pointerof(buflen)) LibIPC.wait(ctx, pointerof(eventtype), pointerof(index), pointerof(fd), buffer.to_unsafe, pointerof(buflen))
pp! LibIPC::EventType.new(eventtype), fd, index, buflen #pp! LibIPC::EventType.new(eventtype), fd, index, buflen
received = String.new(buffer.to_unsafe, buflen) received = String.new(buffer.to_unsafe, buflen)
pp! received pp! received
@ -159,14 +158,10 @@ def test_high_level
ipc.write(fd, "hello this is some value") ipc.write(fd, "hello this is some value")
event = ipc.wait() event = ipc.wait()
pp! event.type
pp! event.fd
m = event.message m = event.message
if m.nil? if m.nil?
puts "No message" puts "No message"
else else
m.not_nil!
pp! String.new(m.to_unsafe, m.size) pp! String.new(m.to_unsafe, m.size)
end end
end end