From 34242c5d600879136d1da4a704c41055d30521e4 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sat, 25 Jul 2015 18:16:04 +0200 Subject: [PATCH] skip extensions_error test for v8 version < 3.30 --- tests/extensions_error.phpt | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/extensions_error.phpt b/tests/extensions_error.phpt index 86594d1..89118c8 100644 --- a/tests/extensions_error.phpt +++ b/tests/extensions_error.phpt @@ -1,7 +1,24 @@ --TEST-- Test V8::registerExtension() : Register extension with errors --SKIPIF-- - + (.*)/", $minfo, $matches)) { + $version = explode('.', $matches[1]); + if($version[0] < 3 || ($version[0] == 3 && $version[1] < 30)) { + // old v8 version, has shorter error message and hence doesn't + // fit our EXCEPTF below + echo "skip"; + } +} + +?> --FILE--