summaryrefslogtreecommitdiff
path: root/Build/source/build-aux
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-10 15:35:19 +0000
committerKarl Berry <karl@freefriends.org>2021-11-10 15:35:19 +0000
commiteeb7ae4de7332d6c9cd5b58e81748dc9d681887b (patch)
tree2769cf5cc164fb30cb1762aeeeb0b83014af8856 /Build/source/build-aux
parent745bdea88b30a8564c0915e91c2aa08d300598be (diff)
doc,sync
git-svn-id: svn://tug.org/texlive/trunk@61016 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/build-aux')
-rwxr-xr-xBuild/source/build-aux/missing2
-rwxr-xr-xBuild/source/build-aux/test-driver11
-rwxr-xr-xBuild/source/build-aux/ylwrap2
3 files changed, 9 insertions, 6 deletions
diff --git a/Build/source/build-aux/missing b/Build/source/build-aux/missing
index 8d0eaad250f..1fe1611f185 100755
--- a/Build/source/build-aux/missing
+++ b/Build/source/build-aux/missing
@@ -3,7 +3,7 @@
scriptversion=2018-03-07.03; # UTC
-# Copyright (C) 1996-2020 Free Software Foundation, Inc.
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
diff --git a/Build/source/build-aux/test-driver b/Build/source/build-aux/test-driver
index 9759384aa72..be73b80adf9 100755
--- a/Build/source/build-aux/test-driver
+++ b/Build/source/build-aux/test-driver
@@ -3,7 +3,7 @@
scriptversion=2018-03-07.03; # UTC
-# Copyright (C) 2011-2020 Free Software Foundation, Inc.
+# Copyright (C) 2011-2021 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -105,8 +105,11 @@ trap "st=130; $do_exit" 2
trap "st=141; $do_exit" 13
trap "st=143; $do_exit" 15
-# Test script is run here.
-"$@" >$log_file 2>&1
+# Test script is run here. We create the file first, then append to it,
+# to ameliorate tests themselves also writing to the log file. Our tests
+# don't, but others can (automake bug#35762).
+: >"$log_file"
+"$@" >>"$log_file" 2>&1
estatus=$?
if test $enable_hard_errors = no && test $estatus -eq 99; then
@@ -128,7 +131,7 @@ esac
# know whether the test passed or failed simply by looking at the '.log'
# file, without the need of also peaking into the corresponding '.trs'
# file (automake bug#11814).
-echo "$res $test_name (exit status: $estatus)" >>$log_file
+echo "$res $test_name (exit status: $estatus)" >>"$log_file"
# Report outcome to console.
echo "${col}${res}${std}: $test_name"
diff --git a/Build/source/build-aux/ylwrap b/Build/source/build-aux/ylwrap
index d1533360b6e..e8ec109fa26 100755
--- a/Build/source/build-aux/ylwrap
+++ b/Build/source/build-aux/ylwrap
@@ -3,7 +3,7 @@
scriptversion=2018-03-07.03; # UTC
-# Copyright (C) 1996-2020 Free Software Foundation, Inc.
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
#
# Written by Tom Tromey <tromey@cygnus.com>.
#