summaryrefslogtreecommitdiff
path: root/lib/tap-driver.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2011-08-22 08:43:22 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2011-08-22 08:46:29 +0200
commit6c20cf0710ef99d0c9b2c1622b18867311cbe78b (patch)
tree2542b3887299b34beb894385157ce246991fc734 /lib/tap-driver.sh
parentc9ca5f61d87cb0578d32981b2ee32118d934ce21 (diff)
downloadautomake-6c20cf0710ef99d0c9b2c1622b18867311cbe78b.tar.gz
tap/awk: support Solaris /usr/bin/nawk
* lib/tap-driver.sh (close_or_die): Remove, the use of the `close' builtin in there was confusing /usr/bin/nawk from Solaris 10 into a syntax error. (write_test_results): Simply use `close' on the `*.trs' file, that should be enough.
Diffstat (limited to 'lib/tap-driver.sh')
-rwxr-xr-xlib/tap-driver.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/tap-driver.sh b/lib/tap-driver.sh
index dd2b92945..60190b8de 100755
--- a/lib/tap-driver.sh
+++ b/lib/tap-driver.sh
@@ -155,12 +155,6 @@ function abort(where)
fatal("internal error " where)
}
-function close_or_die(fpath, fname)
-{
- if (close(fpath) != 0)
- fatal(sprintf("could not close %s \"%s\"", fname, fpath))
-}
-
# Convert a boolean to a "yes"/"no" string.
function yn(bool)
{
@@ -429,7 +423,7 @@ function write_test_results()
print ":copy-in-global-log: " yn(copy_in_global_log()) > trs_file
for (i = 0; i < test_results_index; i += 1)
print ":test-result: " test_results_list[i] > trs_file
- close_or_die(trs_file, "trs file");
+ close(trs_file);
}
## ------- ##