From 7373b4bf797355d67651e0d4ecc59c7cf5a433f3 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 28 Mar 2009 16:11:32 +0100 Subject: started to add getaddrinfo and netdb port stub --- tests/port/GNUmakefile | 5 ++++- tests/port/test_getaddrinfo.c | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 tests/port/test_getaddrinfo.c (limited to 'tests/port') diff --git a/tests/port/GNUmakefile b/tests/port/GNUmakefile index 47f0a61..ea6794c 100644 --- a/tests/port/GNUmakefile +++ b/tests/port/GNUmakefile @@ -15,7 +15,8 @@ TEST_BINS = \ test_snprintf$(EXE) \ test_strlcpy$(EXE) \ test_strlcat$(EXE) \ - test_itoa$(EXE) + test_itoa$(EXE) \ + test_getaddrinfo$(EXE) -include $(TOPDIR)/makefiles/gmake/sub.mk @@ -51,3 +52,5 @@ local_test: @./test_strlcat > /dev/null @echo "Testing itoa.." @./test_itoa > /dev/null + @echo "Testing getaddrinfo.." + @./test_getaddrinfo > /dev/null diff --git a/tests/port/test_getaddrinfo.c b/tests/port/test_getaddrinfo.c new file mode 100644 index 0000000..66dc639 --- /dev/null +++ b/tests/port/test_getaddrinfo.c @@ -0,0 +1,14 @@ +#include "port/sys.h" + +#define TEST_GETADDRINFO +#include "port/netdb.c" /* for getaddrinfo */ + +#include /* for exit, EXIT_SUCCESS, free */ + +int main( void ) { + wolf_port_getaddrinfo( ); + + if( 0 ) return EXIT_FAILURE; + + return EXIT_SUCCESS; +} -- cgit v1.2.3-54-g00ecf