print $@ ? "ok 17\n" : "not ok 17\n";
$newaction=POSIX::SigAction->new(sub { $ok10=1; });
-sigaction(SIGCONT, POSIX::SigAction->new('DEFAULT'));
-{
+if (eval { SIGCONT; 1 }) {
+ sigaction(SIGCONT, POSIX::SigAction->new('DEFAULT'));
+ {
local($^W)=0;
kill 'CONT', $$;
+ }
}
print $bad18 ? "not ok 18\n" : "ok 18\n";
print "not " unless $stat->dev == $stat[ 0];
print "ok 2\n";
-print "not " unless $stat->ino == $stat[ 1];
+# On OS/2 (fake) ino is not constant, it is incremented each time
+print "# ino=>@{[$stat->ino]}, 1=>$stat[ 1]\nnot "
+ unless $stat->ino == $stat[ 1] or $^O eq 'os2';
print "ok 3\n";
print "not " unless $stat->mode == $stat[ 2];
if ((s = sv_gets(PL_linestr, PL_rsfp, 0)) == Nullch)
Perl_croak(aTHX_ "No Perl script found in input\n");
#endif
- if (*s == '#' && s[1] == '!' && (s = instr(s,"perl"))) {
+ s2 = s;
+ if (*s == '#' && s[1] == '!' && ((s = instr(s,"perl")) || (s = instr(s2,"PERL")))) {
PerlIO_ungetc(PL_rsfp, '\n'); /* to keep line count right */
PL_doextract = FALSE;
while (*s && !(isSPACE (*s) || *s == '#')) s++;
eval { sprintf "%vd\n", $x; }
}
+close F;
unlink('a');