Explorar o código

skip extensions_error.phpt on Windows

Stefan Siegl %!s(int64=9) %!d(string=hai) anos
pai
achega
1d1b87bda3
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      tests/extensions_error.phpt

+ 6 - 0
tests/extensions_error.phpt

@@ -9,6 +9,12 @@ phpinfo(INFO_MODULES);
 $minfo = ob_get_contents();
 ob_end_clean();
 
+if(strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
+	// On Windows the "Fatal error" happens to appear before the error
+	// message output by V8 itself.
+	echo "skip Windows";
+}
+
 if(preg_match("/V8 Engine Linked Version => (.*)/", $minfo, $matches)) {
     $version = explode('.', $matches[1]);
     if($version[0] < 3 || ($version[0] == 3 && $version[1] < 30)) {