diff options
author | Larry Wall <lwall@jpl-devvax.jpl.nasa.gov> | 1990-08-13 09:45:26 +0000 |
---|---|---|
committer | Larry Wall <lwall@jpl-devvax.jpl.nasa.gov> | 1990-08-13 09:45:26 +0000 |
commit | 6eb13c3b624098fc688ac86672bc30e26cbf8fd4 (patch) | |
tree | 13f2a8c28c0c79a68f94d0a2c6d852b0ad86f1b9 /t | |
parent | 62b28dd9eb2541847d5ce270cb7493fed626d1ef (diff) | |
download | perl-6eb13c3b624098fc688ac86672bc30e26cbf8fd4.tar.gz |
perl 3.0 patch #28 (combined patch)
Certain systems, notable Ultrix, set the close-on-exec flag
by default on dup'ed file descriptors. This is anti-social
when you're creating a new STDOUT. The flag is now forced
off for STDIN, STDOUT and STDERR.
Some yaccs report 29 shift/reduce conflicts and 59 reduce/reduce
conflicts, while other yaccs and bison report 27 and 61. The
Makefile now says to expect either thing. I'm not sure if there's
a bug lurking there somewhere.
The defined(@array) and defined(%array) ended up defining
the arrays they were trying to determine the status of. Oops.
Using the status of NSIG to determine whether <signal.h> had
been included didn't work right on Xenix. A fix seems to be
beyond Configure at the moment, so we've got some OS dependent
#ifdefs in there.
There were some syntax errors in the new code to determine whether
it is safe to emulate rename() with unlink/link/unlink. Obviously
heavily tested code... :-)
Patch 27 introduced the possibility of using identifiers as
unquoted strings, but the code to warn against the use of
totally lowercase identifiers looped infinitely.
I documented that you can't interpolate $) or $| in pattern.
It was actually implied under s///, but it should have been
more explicit.
Patterns with {m} rather than {m,n} didn't work right.
Tests io.fs and op.stat had difficulties under AFS. They now
ignore the tests in question if they think they're running under
/afs.
The shift/reduce expectation message was off for a2p's Makefile.
Diffstat (limited to 't')
-rw-r--r-- | t/io.fs | 8 | ||||
-rw-r--r-- | t/op.stat | 12 |
2 files changed, 14 insertions, 6 deletions
@@ -1,6 +1,6 @@ #!./perl -# $Header: io.fs,v 3.0 89/10/18 15:26:20 lwall Locked $ +# $Header: io.fs,v 3.0.1.1 90/08/13 22:31:17 lwall Locked $ print "1..22\n"; @@ -61,8 +61,10 @@ if ($foo == 1) {print "ok 16\n";} else {print "not ok 16 $foo\n";} ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, $blksize,$blocks) = stat('b'); if ($ino) {print "ok 17\n";} else {print "not ok 17\n";} -if ($atime == 500000000 && $mtime == 500000001) - {print "ok 18\n";} else {print "not ok 18 $atime $mtime\n";} +if (($atime == 500000000 && $mtime == 500000001) || $wd =~ m#/afs/#) + {print "ok 18\n";} +else + {print "not ok 18 $atime $mtime\n";} if ((unlink 'b') == 1) {print "ok 19\n";} else {print "not ok 19\n";} ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, @@ -1,9 +1,11 @@ #!./perl -# $Header: op.stat,v 3.0.1.3 90/02/28 18:36:51 lwall Locked $ +# $Header: op.stat,v 3.0.1.4 90/08/13 22:31:36 lwall Locked $ print "1..56\n"; +chop($cwd = `pwd`); + unlink "Op.stat.tmp"; open(foo, ">Op.stat.tmp"); @@ -23,7 +25,12 @@ sleep 2; $blksize,$blocks) = stat('Op.stat.tmp'); if ($nlink == 2) {print "ok 3\n";} else {print "not ok 3\n";} -if ($mtime && $mtime != $ctime) {print "ok 4\n";} else {print "not ok 4\n";} +if (($mtime && $mtime != $ctime) || $cwd =~ m#/afs/#) { + print "ok 4\n"; +} +else { + print "not ok 4\n"; +} print "#4 :$mtime: != :$ctime:\n"; `cp /dev/null Op.stat.tmp`; @@ -88,7 +95,6 @@ if (! -b '.') {print "ok 34\n";} else {print "not ok 34\n";} $cnt = $uid = 0; -chop($cwd = `pwd`); die "Can't run op.stat test 35 without pwd working" unless $cwd; chdir '/usr/bin' || die "Can't cd to /usr/bin"; while (<*>) { |