From: Christian Babeux Date: Thu, 21 Mar 2013 19:56:44 +0000 (-0400) Subject: Tests: Fix first line of output to follow TAP guidelines X-Git-Tag: v2.2.0-rc1~41 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=e3bef7256ce348cf232ede3f36721e661cfda2a7;hp=e3bef7256ce348cf232ede3f36721e661cfda2a7 Tests: Fix first line of output to follow TAP guidelines From the Test::Harness::TAP documentation [1]: The plan tells how many tests will be run, or how many tests have run. It's a check that the test file hasn't stopped prematurely. It must appear once, whether at the beginning or end of the output. The TAP plan *must* be the first line of output of any tests. Currently, most of the tests output their description and then the TAP plan. This can cause issues while parsing the test output for "strict" TAP parser such as the one used in the prove tool. This commit ensure that the first line outputted by any tests is the TAP plan. Signed-off-by: Christian Babeux Signed-off-by: David Goulet ---