Win32 has name conflict with ERROR
[p5sagit/p5-mst-13.2.git] / vms / test.com
index 302dbf5..6fae18d 100644 (file)
@@ -98,9 +98,8 @@ $
 $!  And do it
 $   Show Process/Accounting
 $   testdir = "Directory/NoHead/NoTrail/Column=1"
-$   oldshr = F$TrnLNm("''dbg'PerlShr","LNM$PROCESS")
-$   If F$Length(oldshr).ne.0 Then Write Sys$Error "Superseding ''dbg'PerlShr . . ."
-$   Define 'dbg'Perlshr Sys$Disk:[-]'dbg'PerlShr'exe'
+$   PerlShr_filespec = f$parse("Sys$Disk:[-]''dbg'PerlShr''exe'")
+$   Define 'dbg'Perlshr 'PerlShr_filespec'
 $   MCR Sys$Disk:[]Perl. "-I[-.lib]" - "''p3'" "''p4'" "''p5'" "''p6'"
 $   Deck/Dollar=$$END-OF-TEST$$
 # $RCSfile: TEST,v $$Revision: 4.1 $$Date: 92/08/07 18:27:00 $
@@ -247,16 +246,8 @@ print sprintf("u=%g  s=%g  cu=%g  cs=%g  scripts=%d  tests=%d\n",
     $user,$sys,$cuser,$csys,$files,$totmax);
 $$END-OF-TEST$$
 $ wrapup:
-$   If F$Length(oldshr).ne.0
-$   Then
-$     Write Sys$Error "restoring ''dbg'PerlShr . . ."
-$     Def/Translation=Concealed  'dbg'PerlShr 'oldshr'
-$   Else
-$     Deassign 'dbg'PerlShr
-$   EndIf
+$   deassign 'dbg'Perlshr
 $   Show Process/Accounting
 $   Set Default &olddef
 $   Set Message 'oldmsg'
 $   Exit
-
-