#!./perl
BEGIN {
chdir 't' if -d 't';
}
# A modest test: exercises only O_WRONLY, O_CREAT, and O_RDONLY.
# Have to be modest to be portable: could possibly extend testing
# also to O_RDWR and O_APPEND, but dunno about the portability of,
# say, O_TRUNC and O_EXCL, not to mention O_NONBLOCK.
use Fcntl;
print "1..7\n";
print "ok 1\n";
print "ok 2\n";
print "ok 3\n";
print "ok 4\n";
print "ok 5\n";
print "ok 6\n";
} else {
}
} else {
print "not ok 5 # sysread failed: $!\n";
}
} else {
print "not ok 4 # sysopen O_RDONLY failed: $!\n";
}
} else {
print "not ok 3 # syswrite failed: $!\n";
}
} else {
print "not ok 2 # sysopen O_WRONLY failed: $!\n";
}
# Opening of character special devices gets special treatment in doio.c
# Didn't work as of perl-5.8.0-RC2.
if (-c $devnull) {
}
else {
}
}
else {
}
END {
}