diff options
author | Jacob Bachmeyer <jcb@gnu.org> | 2021-05-20 00:34:56 -0500 |
---|---|---|
committer | Jacob Bachmeyer <jcb@gnu.org> | 2021-05-20 00:34:56 -0500 |
commit | 3be6fdc0ee4b2af9eb7bbd768c9d66ee77be9ea5 (patch) | |
tree | 6c7a93fd7fe4fcd828e77adb0cc5a3d24fb098ab /testsuite | |
parent | 7e634eae6345ab38027f156202e298b591b68fb6 (diff) |
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.exp | 4 |
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. |