Skip to content

Commit

Permalink
[WIP] Add small test case for abstract sockets
Browse files Browse the repository at this point in the history
I haven't verified whether this test case would even work if the
implementation is correct, but so far it fails spectacularly.

TODO: Amend this very commit and not only add more tests but actually do
the verification mentioned above.

Signed-off-by: aszlig <[email protected]>
  • Loading branch information
aszlig committed Aug 5, 2023
1 parent d1acfd4 commit f6485c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ def test_socket_activation_with_fdname(self):
finally:
os.unlink(extrasock)

@helper.abstract_sockets_only
def test_abstract_socket(self):
srule = {'direction': 'incoming', 'abstract': 'a%p'}
crule = {'direction': 'outgoing', 'abstract': 'a%p'}
with self.run_server([srule], '1.2.3.4', 929):
self.assert_client([crule], '1.2.3.0', 929)


class UdpConnectionTest(TcpConnectionTest):
SOTYPE = 'udp'

0 comments on commit f6485c2

Please sign in to comment.