18 ## Get the tests to run.
19 $tests = &init_tests();
21 ## Print total number of tests.
27 foreach $test (@$tests) {
32 print "not ok $count\n";
46 ## Create a TCP socket.
47 use Socket qw(AF_INET SOCK_STREAM);
48 socket S, AF_INET, SOCK_STREAM, 0
51 ## Check for input on socket - it should return 0.
52 vec($r='', fileno(S), 1) = 1;
53 eval { $nfound = select($r, '', '', 0) };
57 return unless defined($nfound) and $nfound == 0;