Skip to content

Commit

Permalink
Merge pull request #2377 from ajones-rvbd/ajones-issue-2375
Browse files Browse the repository at this point in the history
tests/isisd: bypass test_fuzz_isis_tlv when inet_ntop is broken
  • Loading branch information
riw777 committed Jun 8, 2018
2 parents e78f9d0 + 1808d46 commit d5a91f9
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/isisd/test_fuzz_isis_tlv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@

import pytest
import platform
import socket

if platform.uname()[0] == 'SunOS':

##
# on musl, ntop compresses a single :0: -> :: which is against RFC
##
def inet_ntop_broken():
addr = '1:2:3:4:0:6:7:8'
return socket.inet_ntop(socket.AF_INET6,
socket.inet_pton(socket.AF_INET6, addr)) != addr


if platform.uname()[0] == 'SunOS' or inet_ntop_broken():
class TestFuzzIsisTLV:
@pytest.mark.skipif(True, reason='Test unsupported on SunOS')
@pytest.mark.skipif(True, reason='Test unsupported')
def test_exit_cleanly(self):
pass
else:
Expand Down

0 comments on commit d5a91f9

Please sign in to comment.