[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
typo-related *minor* bug in file tests/defs.in, in exit trap code
From: |
Stefano Lattarini |
Subject: |
typo-related *minor* bug in file tests/defs.in, in exit trap code |
Date: |
Wed, 2 Sep 2009 01:09:57 +0200 |
User-agent: |
KMail/1.11.4 (Linux/2.6.26-1-686; KDE/4.2.4; i686; ; ) |
Hi all.
First of all, I must admit that the bug described here is so little
and unimportant that this mail could be described as nitpicking
rather than as bug reporting -- but here it goes anyway.
I have the latest automake sources checked out from git.
I found the following glitch in the exit trap code setup in file
`tests/defs.in', (around lines 267-270): the variable `$as_me'
is used in error messages as the name of the test, while the
variable `$me' should be used instead (the variable $as_me
is never defined).
This "bug" can be triggered e.g. by doing from within the tests
directory:
$ ./aclibobj.test
and hitting CTRL-C (almost) immediately.
The displayed error message is something like this:
+ cd /home/stefano/src/automake/tests
+ case $exit_status,$keep_testdirs in
+ test 2 '!=' 0
+ echo ': caught signal 2'
: caught signal 2
+ echo ': exit 1'
: exit 1
+ exit 1
while it should have been something like this:
+ cd /home/stefano/src/automake/tests
+ case $exit_status,$keep_testdirs in
+ test 2 '!=' 0
+ echo 'aclibobj: caught signal 2'
aclibobj: caught signal 2
+ echo 'aclibobj: exit 1'
aclibobj: exit 1
+ exit 1
Attached is a tiny patch that should fix this glitch.
After applying it, I also rerun the testsuite, just to be sure. No
error showed up.
Regards,
Stefano
0001-testsuite-fix-a-minor-glitch.patch
Description: Text Data
- typo-related *minor* bug in file tests/defs.in, in exit trap code,
Stefano Lattarini <=