1N/A chdir 't' if -d 't'; 1N/A local $TODO = "read to array element not working"; 1N/A # But not NetBSD 1.6 & 1.6.1: the test makes perl crash. 1N/A # So the kill() must not be done with this config in order to 1N/A # For others (darwin & freebsd), let the test fail without crashing. 1N/A print "not ok 10 - sig mask delayed SIGINT ",$why_todo,"\n"; 1N/A printf "%s 11 - masked SIGINT received %s\n", 1N/A print "ok 12 - signal masks successful\n"; 1N/A print "ok 9 - sigaction SIGHUP\n"; 1N/A print "ok 10 - sig mask delayed SIGINT\n"; 1N/A # The order of the above tests is very important, so 1N/A # we use literal prints and hard coded numbers. 1N/A# Check string conversion functions. 1N/A # we're just checking that strtod works, not how accurate it is 1N/A ok((abs("3.14159" - $n) < 1e-6) && ($x == 6), 'strtod works'); 1N/A is($n, 21, 'strtol() number'); 1N/A is($x, 9, ' unparsed chars'); 1N/A is($n, 88, 'strtoul() number'); 1N/A is($x, 6, ' unparsed chars'); 1N/A# Pick up whether we're really able to dynamically load everything. 1N/A# This can coredump if struct tm has a timezone field and we 1N/A# didn't detect it. If this fails, try adding 1N/A# If that worked, validate the mini_mktime() routine's normalisation of 1N/A# input fields to strftime(). 1N/A # POSIX::errno is autoloaded. 1N/A # Autoloading requires many system calls. 1N/A # errno() looks at $! to generate its result. 1N/A # Autoloading should not munge the value. 1N/A # Force numeric context. 1N/A is (eval "kill 0", 0, "check we have CORE::kill") 1N/A# Check that we can import the POSIX kill routine 1N/A# Check unimplemented. 1N/A "check its unimplemented message");
1N/A# Check reimplemented. 1N/A "check its redef message");
1N/A# Simplistic tests for the isXXX() functions (bug #16799) 1N/A# metaphysical question : what should be returned for an empty string ? 1N/A# anyway this shouldn't segfault (bug #24554) 1N/A# those functions should stringify their arguments 1N/A# Check that output is not flushed by _exit. This test should be last 1N/A# in the file, and is not counted in the total number of tests. 1N/A print "# TODO - hit VOS bug posix-885 - _exit flushes output buffers.\n"; 1N/A # The following line assumes buffered output, which may be not true: