]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Don't add extra padding if counter mod 40 is 0
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 20 Mar 2010 17:08:00 +0000 (18:08 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 24 Mar 2010 00:07:57 +0000 (01:07 +0100)
commit8a7783c16378e4684d121ad49a65659f8d33a9cf
treee2bd521772b9326a9c0ba57d8e2713865e7762f1
parent81e99f014ba4c033d6158118ac6b2fea32433f7d
tests: Don't add extra padding if counter mod 40 is 0

This change only affects the output of tests that have an exact
multiple of 40 test cases. For example the domainschematest currently:

TEST: domainschematest
      ........................................ 40
      ........................................ 80
      ........................................ 120
      ........................................ 160
      ........................................                                         200 OK
PASS: domainschematest

It outputs additional 40 spaces on the last line.

The domainschematest output is fixed by the change in test-lib.sh. The
change in testutils.c fixes this for tests written in C. Currently no
C test has an exact multiple of 40 test cases, but I checked it and
the same problem exists there.

This patch stops that in both cases.
tests/test-lib.sh
tests/testutils.c