Subject: | Tests fail in Perls before 5.14 due to "package okayer {" syntax |
$ ./Build test
t/01_watcher.t ....... Invalid version format (non-numeric data) at t/01_watcher.t line 9, near "package okayer "
syntax error at t/01_watcher.t line 10, near "package okayer { "
Execution of t/01_watcher.t aborted due to compilation errors.
t/01_watcher.t ....... Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/02_benchmarks.t .... ok
t/03_memory_leaks.t .. Invalid version format (non-numeric data) at t/03_memory_leaks.t line 20, near "package okayer "
syntax error at t/03_memory_leaks.t line 21, near "package okayer { "
Execution of t/03_memory_leaks.t aborted due to compilation errors.
t/03_memory_leaks.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
Replacing "package okayer {" with "{ package okayer; " in t/01_watcher.t and t/03_memory_leaks.t allow the tests to succeed.
t/01_watcher.t ....... Invalid version format (non-numeric data) at t/01_watcher.t line 9, near "package okayer "
syntax error at t/01_watcher.t line 10, near "package okayer { "
Execution of t/01_watcher.t aborted due to compilation errors.
t/01_watcher.t ....... Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/02_benchmarks.t .... ok
t/03_memory_leaks.t .. Invalid version format (non-numeric data) at t/03_memory_leaks.t line 20, near "package okayer "
syntax error at t/03_memory_leaks.t line 21, near "package okayer { "
Execution of t/03_memory_leaks.t aborted due to compilation errors.
t/03_memory_leaks.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
Replacing "package okayer {" with "{ package okayer; " in t/01_watcher.t and t/03_memory_leaks.t allow the tests to succeed.