Refactor t/porting/filenames.t to shrink the code and the TAP generated.
authorNicholas Clark <nick@ccl4.org>
Tue, 28 Aug 2012 20:01:19 +0000 (22:01 +0200)
committerNicholas Clark <nick@ccl4.org>
Wed, 29 Aug 2012 09:41:41 +0000 (11:41 +0200)
commit3013c637d1218ee9b8d88c8df6a48b0413a63df9
tree038a1a21d6a3e5a36eb035b35662e6e1595498d7
parent11dfcd49cdb95783f37678e2bfdc79fb62c5ac60
Refactor t/porting/filenames.t to shrink the code and the TAP generated.

Fold the function validate_file_name() into its only caller. Put the tested
pathname into each test description to avoid a call to note() - this halves
the size of the TAP generated. Fold the chained tests into a chained
if/elsif/else sequence. Eliminate the use of File::Spec, as all platforms
can cope internally with F<../MANIFEST>.
t/porting/filenames.t