aboutsummaryrefslogtreecommitdiffstats
path: root/test/rwarray.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-01-10 12:30:37 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-01-10 12:30:37 +0200
commit1daf400c55ab311c43f1cfa0a253955d81c0c2e7 (patch)
tree8951b5772f56ee5086fce670261777356858b606 /test/rwarray.awk
parent54684e9a410c64bcde42c39e02832d586ffd1074 (diff)
parent664868f72b741ba448398d609e18a4cbb1ca20be (diff)
downloadegawk-1daf400c55ab311c43f1cfa0a253955d81c0c2e7.tar.gz
egawk-1daf400c55ab311c43f1cfa0a253955d81c0c2e7.tar.bz2
egawk-1daf400c55ab311c43f1cfa0a253955d81c0c2e7.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'test/rwarray.awk')
-rw-r--r--test/rwarray.awk25
1 files changed, 16 insertions, 9 deletions
diff --git a/test/rwarray.awk b/test/rwarray.awk
index 5d1b7e9d..0cb214ee 100644
--- a/test/rwarray.awk
+++ b/test/rwarray.awk
@@ -21,13 +21,20 @@ BEGIN {
printf("dict[%s] = %s\n", dictindices[i], dict[dictindices[i]]) > "new.out"
close("new.out");
- ret = system("cmp orig.out new.out")
-
- if (ret == 0)
- print "old and new are equal - GOOD"
- else
- print "old and new are not equal - BAD"
-
- if (ret == 0 && !("KEEPIT" in ENVIRON))
- system("rm -f orig.bin orig.out new.out")
+ os = ""
+ if (ENVIRON["AWKLIBPATH"] == "sys$disk:[-]") {
+ os = "VMS"
+ # return status from system() on VMS can not be used here
+ }
+ if (os != "VMS") {
+ ret = system("cmp orig.out new.out")
+
+ if (ret == 0)
+ print "old and new are equal - GOOD"
+ else
+ print "old and new are not equal - BAD"
+
+ if (ret == 0 && !("KEEPIT" in ENVIRON))
+ system("rm -f orig.bin orig.out new.out")
+ }
}