浏览代码

Skip tests/timezones on Windows

Stefan Siegl 10 年之前
父节点
当前提交
7b435e30dc
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      tests/timezones.phpt

+ 6 - 1
tests/timezones.phpt

@@ -1,7 +1,12 @@
 --TEST--
 --TEST--
 Test V8::executeString() : Check timezone handling
 Test V8::executeString() : Check timezone handling
 --SKIPIF--
 --SKIPIF--
-<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+<?php
+if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
+	die('SKIP TZ not handled by v8 on Windows');
+}
+require_once(dirname(__FILE__) . '/skipif.inc');
+?>
 --FILE--
 --FILE--
 <?php
 <?php