summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-03 15:56:24 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-03 20:01:12 +0100
commitf588c2d4bb2d9cb5f2ae5f4f50a7eaf60f80aff6 (patch)
tree8fb2bd9033c552a51267ba0075969eac810e36af
parent23e2b7118e41ba78b4069510daae772540b49ebb (diff)
add gethostid() testcase
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--test/inet/gethostid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/inet/gethostid.c b/test/inet/gethostid.c
new file mode 100644
index 000000000..295166536
--- /dev/null
+++ b/test/inet/gethostid.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#include <stdio.h>
+int main(void) {
+ printf("hostid=%d\n", gethostid());
+ return 0;
+}