Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Perl 5.005_03 `make test' #1091

Closed
p5pRT opened this issue Jan 26, 2000 · 1 comment
Closed

Fix for Perl 5.005_03 `make test' #1091

p5pRT opened this issue Jan 26, 2000 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Jan 26, 2000

Migrated from rt.perl.org#2044 (status was 'resolved')

Searchable as RT2044$

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2000

From PPirn@lnc.com

I've looked at the code for both op/misc.t and op/stat.t, but I can't see
why the "file already exists" errors occurred in either case. As far as I
can tell, the files should not have already existed. How were they created?

Run Perl tests.

cd ./t
./perl harness

op/misc.............sh​: misctmp002​: file already exists
dubious
  Test returned status 0 (wstat 13, 0xd)
DIED. FAILED tests 2-57
  Failed 56/57 tests, 1.75% okay

sh​: Op.stat.tmp​: file already exists
FAILED tests 7-8
  Failed 2/58 tests, 96.55% okay

Failed Test Status Wstat Total Fail Failed List of failed


--
op/misc.t 0 13 57 56 98.25% 2-57
op/stat.t 58 2 3.45% 7-8
6 tests skipped, plus 16 subtests skipped.
Failed 2/190 test scripts, 98.95% okay. 58/6503 subtests failed, 99.11% okay.

Try running op/misc.t individually several times​:

honey 263$ ./perl op/misc.t
1..57
ok 1
sh​: misctmp004​: file already exists
honey 269$ ./perl op/misc.t
1..57
ok 1
sh​: misctmp005​: file already exists
honey 270$ ./perl op/misc.t
1..57
ok 1
sh​: misctmp006​: file already exists

Fix op/misc.t.

===================================================================
RCS file​: RCS/misc.t,v
retrieving revision 1.1
diff -c -r1.1 misc.t
*** misc.t 2000/01/26 14​:00​:41 1.1
--- misc.t 2000/01/26 14​:22​:19
***************
*** 29,35 ****
  open TEST, "| .\\perl -I../lib $switch >$tmpfile 2>&1";
  }
  else {
! open TEST, "| sh -c './perl $switch' >$tmpfile 2>&1";
  }
  print TEST $prog, "\n";
  close TEST;
--- 29,35 ----
  open TEST, "| .\\perl -I../lib $switch >$tmpfile 2>&1";
  }
  else {
! open TEST, "| sh -c './perl $switch' >| $tmpfile 2>&1";
  }
  print TEST $prog, "\n";
  close TEST;

Fix op/stat.t.

===================================================================
RCS file​: RCS/stat.t,v
retrieving revision 1.1
diff -c -r1.1 stat.t
*** stat.t 2000/01/26 14​:16​:53 1.1
--- stat.t 2000/01/26 14​:20​:03
***************
*** 72,78 ****
  if (-z 'Op.stat.tmp') {print "ok 5\n";} else {print "not ok 5\n";}
  if (! -s 'Op.stat.tmp') {print "ok 6\n";} else {print "not ok 6\n";}
 
! $Is_MSWin32 ? `cmd /c echo hi > Op.stat.tmp` : `echo hi >Op.stat.tmp`;
  if (! -z 'Op.stat.tmp') {print "ok 7\n";} else {print "not ok 7\n";}
  if (-s 'Op.stat.tmp') {print "ok 8\n";} else {print "not ok 8\n";}
 
--- 72,78 ----
  if (-z 'Op.stat.tmp') {print "ok 5\n";} else {print "not ok 5\n";}
  if (! -s 'Op.stat.tmp') {print "ok 6\n";} else {print "not ok 6\n";}
 
! $Is_MSWin32 ? `cmd /c echo hi > Op.stat.tmp` : `echo hi >| Op.stat.tmp`;
  if (! -z 'Op.stat.tmp') {print "ok 7\n";} else {print "not ok 7\n";}
  if (-s 'Op.stat.tmp') {print "ok 8\n";} else {print "not ok 8\n";}


-
Peeter Pirn Lincoln Financial Systems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant