summaryrefslogtreecommitdiff
path: root/t/backcompat2.sh
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2016-05-30 17:07:52 -0700
committerJim Meyering <meyering@fb.com>2016-06-01 21:13:05 -0700
commit5fac9a39d45e761f2b27262c4fd13ccb3ff8dc9b (patch)
treec6a0b9a422061e024a010ded2a9f036696f93210 /t/backcompat2.sh
parent455bad28ec7120640750ecfca12ddacce27d5fe8 (diff)
downloadautomake-5fac9a39d45e761f2b27262c4fd13ccb3ff8dc9b.tar.gz
compile: remove .Tpo file upon failure
When generating a .deps/base.Po file, our emitted rule first writes to a temporary .Tpo file, so the final creation can be atomic, via mv's rename. However, when generation of the .Tpo fails, it stop the process and does not remove that temporary file. And nothing else ever deletes it, either. Hence, in the unusual case in which one expects a compilation to fail during a successful build (gnulib's test-verify.sh does precisely this), a .deps/test-verify.Tpo file would be left behind, and that would in turn cause a "make distcheck" failure because that file would exist in one build+distclean hierarchy but not in the distribution tarball. * lib/am/depend2.am: Ensure that the temporary file is removed upon failure. * t/distcheck-Tpo.sh: New file. * t/list-of-tests.mk (handwritten_TESTS): Add it. This addresses bug#23661.
Diffstat (limited to 't/backcompat2.sh')
0 files changed, 0 insertions, 0 deletions