diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2010-08-02 21:10:00 +0200 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2010-08-02 22:17:50 +0200 |
commit | a5e9aa68b7acc9cd1819c665e885125c267e6b3f (patch) | |
tree | f52db82b10fdf857a4934a9666207db378e419c6 /tests/autotest.at | |
parent | 55072aea4a610882a2eb1b2ae3f40a20b77fc836 (diff) | |
download | autoconf-a5e9aa68b7acc9cd1819c665e885125c267e6b3f.tar.gz |
Ensure unnamed test group categories are separated from previous.
* doc/autoconf.texi (Writing Testsuites) <AT_BANNER>: Update
description.
* lib/autotest/general.m4 (AT_INIT) <at_fn_banner>: Set banner
to single space, not empty line, once printed. For empty
banners, print a single empty line to separate them from a
previous test group category.
* tests/autotest.at (Banners): Insert another test group; adjust
tests accordingly. Extend test to cover semantic change.
* NEWS: Update.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/autotest.at')
-rw-r--r-- | tests/autotest.at | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/autotest.at b/tests/autotest.at index fd3787a4..c03c126d 100644 --- a/tests/autotest.at +++ b/tests/autotest.at @@ -956,15 +956,18 @@ AT_CHECK(:) AT_CLEANUP AT_BANNER() -AT_SETUP(two)# 4 +AT_SETUP(two a)# 4 +AT_CHECK(:) +AT_CLEANUP +AT_SETUP(two b)# 5 AT_CHECK(:) AT_CLEANUP AT_BANNER([second]) -AT_SETUP(three a)# 5 +AT_SETUP(three a)# 6 AT_CHECK(:) AT_CLEANUP -AT_SETUP(three b)# 6 +AT_SETUP(three b)# 7 AT_CHECK(:) AT_CLEANUP ]]) @@ -983,8 +986,11 @@ AT_CHECK_BANNERS([-2], [first], [1], [second], [0]) AT_CHECK_BANNERS([-3], [first], [1], [second], [0]) AT_CHECK_BANNERS([-k one], [first], [1], [second], [0]) AT_CHECK_BANNERS([3-4], [first], [1], [second], [0]) -AT_CHECK_BANNERS([3-5], [first], [1], [second], [1]) -AT_CHECK_BANNERS([4-5], [first], [0], [second], [1]) +dnl There should be an empty line separating the first category from the +dnl unnamed one. +AT_CHECK([sed -n '/one b/,/two a/p' stdout | grep '^$'], [0], [ignore]) +AT_CHECK_BANNERS([3-6], [first], [1], [second], [1]) +AT_CHECK_BANNERS([4-6], [first], [0], [second], [1]) AT_CHECK_BANNERS([3-], [first], [1], [second], [1]) AT_CHECK_BANNERS([-k a], [first], [1], [second], [1]) AT_CHECK_BANNERS([4], [first], [0], [second], [0]) |