X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/d7da4a8e16d9d4d5ad1699d73abc04c6b4039ebb..1f00de5f13cce5520d5b7f831cb99c8cc488446d:/t/html.t

diff --git a/t/html.t b/t/html.t
index 3faf44154..84c561fa8 100755
--- a/t/html.t
+++ b/t/html.t
@@ -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);