OSDN Git Service

tests/unit: Update test-io-channel-socket.c for Windows
authorBin Meng <bin.meng@windriver.com>
Tue, 2 Aug 2022 07:52:00 +0000 (15:52 +0800)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 2 Sep 2022 11:54:47 +0000 (15:54 +0400)
commit0370f239ad14aeacc496775e241b9ef041df4374
treec9c50117be99741dc4e556956ba8be18c2652587
parent120fa5e0e6ebacd811e4d830cff8a405806d305c
tests/unit: Update test-io-channel-socket.c for Windows

Change to dynamically include the test cases by checking AF_UNIX
availability using a new helper socket_check_afunix_support().
With such changes testing on a Windows host can be covered as well.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220802075200.907360-5-bmeng.cn@gmail.com>
tests/unit/socket-helpers.c
tests/unit/socket-helpers.h
tests/unit/test-io-channel-socket.c