Files
flexnbd-c/tests/fakes/dest/reject_acl.rb

14 lines
225 B
Ruby
Raw Normal View History

2012-06-22 10:05:41 +01:00
#!/usr/bin/env ruby
# Accept a connection, then immediately close it. This simulates an ACL rejection.
require 'flexnbd/fake_dest'
include FlexNBD
2012-06-22 10:05:41 +01:00
server = FakeDest.new( *ARGV )
server.accept.close
2012-06-22 10:05:41 +01:00
server.close
2012-06-22 10:05:41 +01:00
exit(0)