Use properly local variables for thread-safety.
[openssl.git] / test / tx509.com
index 985969c566f24d24d77d5e8f482a9774b12e8ea6..cd23a354fb59ab976bacafd06eab1ca4f0bb3a77 100644 (file)
@@ -1,7 +1,9 @@
 $! TX509.COM  --  Tests x509 certificates
 $
 $      __arch := VAX
-$      if f$getsyi("cpu") .ge. 128 then __arch := AXP
+$      if f$getsyi("cpu") .ge. 128 then -
+          __arch := f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
+$      if __arch .eqs. "" then __arch := UNK
 $      exe_dir := sys$disk:[-.'__arch'.exe.apps]
 $
 $      cmd := mcr 'exe_dir'openssl x509
@@ -13,7 +15,9 @@ $     write sys$output "testing X509 conversions"
 $      if f$search("fff.*") .nes "" then delete fff.*;*
 $      if f$search("ff.*") .nes "" then delete ff.*;*
 $      if f$search("f.*") .nes "" then delete f.*;*
-$      copy 't' fff.p
+$      convert/fdl=sys$input: 't' fff.p
+RECORD
+       FORMAT STREAM_LF
 $
 $      write sys$output "p -> d"
 $      'cmd' -in fff.p -inform p -outform d -out f.d