Share common code in t/TEST and t/harness, by having harness require ./TEST
authorNicholas Clark <nick@ccl4.org>
Thu, 27 Aug 2009 12:23:38 +0000 (13:23 +0100)
committerNicholas Clark <nick@ccl4.org>
Thu, 27 Aug 2009 12:26:23 +0000 (13:26 +0100)
commitc537bcda150384467d5ff232f1f1b27075e03c5b
tree218f8bdb2ad58e5369cce54399d10e5f08e2167f
parent16fa5c119c4bda5c0396a5f81296bd1ccc128a9c
Share common code in t/TEST and t/harness, by having harness require ./TEST

The logical way to do this would be to have the common code in a file both
require or use. However, t/TEST needs to still work, to generate test results,
even if require isn't working, so we cannot do that. t/harness has no such
restriction, so it is quite acceptable to have it require t/TEST.
t/TEST
t/harness