diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-03-12 08:30:40 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-03-12 08:30:52 +0000 |
commit | e6b5e940fdb8e2ded70a80132af6c280db02e8d8 (patch) | |
tree | e35bb2676c51fb241ac054d51df632c3e734eaad /test | |
parent | d4faac5480f6416cf92301745a9a9572bc865061 (diff) | |
download | raindrops-e6b5e940fdb8e2ded70a80132af6c280db02e8d8.tar.gz |
Be stricter about invalid inputs.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_linux_ipv6.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_linux_ipv6.rb b/test/test_linux_ipv6.rb index bd24cab..479b9a2 100644 --- a/test/test_linux_ipv6.rb +++ b/test/test_linux_ipv6.rb @@ -96,6 +96,11 @@ class TestLinuxIPv6 < Test::Unit::TestCase assert_equal 1, stats[addr2].active end + def test_invalid_addresses + assert_raises(ArgumentError) { tcp_listener_stats(%w([1:::5)) } + assert_raises(ArgumentError) { tcp_listener_stats(%w([1:::]5)) } + end + # tries to overflow buffers def test_tcp_stress_test nr_proc = 32 |