summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>1998-02-05 08:55:23 -0500
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-06 17:24:57 +0000
commit84ef74c402afedb118ae96e8e20646cc0ffe6ff8 (patch)
tree33e66a1168fe2b67fb6674a31e62226d8694db29 /t
parent5e212cb5841accd06262f40bb6be04cdf60c87d6 (diff)
downloadperl-84ef74c402afedb118ae96e8e20646cc0ffe6ff8.tar.gz
Re: posix::strftime (core dumped)
p4raw-id: //depot/perl@481
Diffstat (limited to 't')
-rwxr-xr-xt/lib/posix.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/lib/posix.t b/t/lib/posix.t
index 6ae88c0dd2..d63e695f02 100755
--- a/t/lib/posix.t
+++ b/t/lib/posix.t
@@ -10,11 +10,11 @@ BEGIN {
}
}
-use POSIX qw(fcntl_h signal_h limits_h _exit getcwd open read write);
+use POSIX qw(fcntl_h signal_h limits_h _exit getcwd open read strftime write);
use strict subs;
$| = 1;
-print "1..17\n";
+print "1..18\n";
$testfd = open("TEST", O_RDONLY, 0) and print "ok 1\n";
read($testfd, $buffer, 9) if $testfd > 2;
@@ -80,6 +80,12 @@ if ($Config{d_strtoul}) {
# Pick up whether we're really able to dynamically load everything.
print &POSIX::acos(1.0) == 0.0 ? "ok 17\n" : "not ok 17\n";
+# This can coredump if struct tm has a timezone field and we
+# didn't detect it. If this fails, try adding
+# -DSTRUCT_TM_HASZONE to your cflags when compiling ext/POSIX/POSIX.c.
+# See ext/POSIX/hints/sunos_4.pl and ext/POSIX/hints/linux.pl
+print POSIX::strftime("ok 18 # %H:%M, on %D\n", localtime());
+
$| = 0;
print '@#!*$@(!@#$';
_exit(0);