Search $PATH for "validate", since the test does.

"validate" is a very generic command name, and it validates against
an old standard, so the value of this test is questionable.
master
Amitai Schlair 2014-10-01 15:06:24 -04:00
parent f99a9a8ffd
commit afd9b2ff74
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ my @pages;
BEGIN {
@pages=qw(index features news plugins/map security);
if (! -x "/usr/bin/validate") {
plan skip_all => "/usr/bin/validate html validator not present";
if (system("command -v validate >/dev/null") != 0) {
plan skip_all => "html validator not present";
}
else {
plan(tests => int @pages + 2);