Subject: | Test::Harness should run executable .t files directly |
$Test::Harness::VERSION = 2.42
When Test::Harness goes to run a .t file, it executes it through $^X, irrespective of whether or not the .t file is executable.
This breaks things if your .t file is directly executable object code -- e.g., if the test is compiled C code.
At the moment, it's necessary to create a wrapper shim that does something like (assuming that the compiled code is <foo>, and the test is <foo>.t:
---
#!/bin/sh
cd `dirname $0`
exec `basename $0 .t`
---
While this works, it's not very elegant.