]> xenbits.xensource.com Git - libvirt.git/commit
tests: simplify formatting
authorEric Blake <eblake@redhat.com>
Mon, 11 Jul 2011 15:19:11 +0000 (09:19 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 11 Jul 2011 15:21:37 +0000 (09:21 -0600)
commit9693e293959959dafdb8c114608141b277ba69ce
tree43c084e4c5e9c39ceb9fc77abfb6c5b1e9d7fc86
parenteb3143154e4ecedf3a97445b3b90bd135a564431
tests: simplify formatting

The shell version would output 40 extra spaces for a test with
a multiple of 40 sub-tests, and the C version can use the same
printf optimization for avoiding a loop over single space output
as the shell version.

* tests/testutils.c (virtTestMain): Avoid loop for alignment.
* tests/test-lib.sh: Fix formatting when counter is multiple of 40.
tests/test-lib.sh
tests/testutils.c