aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb@gnu.org>2021-05-20 00:34:56 -0500
committerJacob Bachmeyer <jcb@gnu.org>2021-05-20 00:34:56 -0500
commit3be6fdc0ee4b2af9eb7bbd768c9d66ee77be9ea5 (patch)
tree6c7a93fd7fe4fcd828e77adb0cc5a3d24fb098ab /testsuite
parent7e634eae6345ab38027f156202e298b591b68fb6 (diff)
downloaddejagnu-3be6fdc0ee4b2af9eb7bbd768c9d66ee77be9ea5.zip
dejagnu-3be6fdc0ee4b2af9eb7bbd768c9d66ee77be9ea5.tar.gz
dejagnu-3be6fdc0ee4b2af9eb7bbd768c9d66ee77be9ea5.tar.bz2
Fix portability problem with /usr/bin/awk on Solaris 10 in stats test
The /usr/bin/awk on Solaris 10 is a pre-POSIX Awk that, among other limitations, does not recognize the ARGV array as special.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/runtest.main/nested/testsuite/stat.test/unit-sub.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/runtest.main/nested/testsuite/stat.test/unit-sub.exp b/testsuite/runtest.main/nested/testsuite/stat.test/unit-sub.exp
index 96f8ac3..f3aece8 100644
--- a/testsuite/runtest.main/nested/testsuite/stat.test/unit-sub.exp
+++ b/testsuite/runtest.main/nested/testsuite/stat.test/unit-sub.exp
@@ -22,5 +22,7 @@ load_lib dejagnu.exp
if { [info exists STATS_TEST] } {
host_execute [which awk] -f [testsuite file -source -test unit-sub.awk] \
- UNIT_RESULT=$STATS_TEST
+ UNIT_RESULT=$STATS_TEST /dev/null
}
+# Solaris 10 /usr/bin/awk needs /dev/null actually passed on the command
+# line, but will run unit-sub.awk without problems if that is done.