]> granicus.if.org Git - php/commitdiff
Skip test if JIT is not available
authorDmitry Stogov <dmitry@zend.com>
Tue, 1 Dec 2020 06:58:33 +0000 (09:58 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 1 Dec 2020 06:58:33 +0000 (09:58 +0300)
ext/opcache/tests/jit/bug80426.phpt

index 04599ed1fc1afcebf72c551a29523887e3eda1eb..19364e8a6cc8e0576353bb55ee5a3936814f7c2d 100644 (file)
@@ -7,6 +7,7 @@ opcache.jit_buffer_size=1M
 zend_test.replace_zend_execute_ex=1
 --SKIPIF--
 <?php require_once('skipif.inc'); ?>
+<?php if (!isset(opcache_get_status()["jit"])) die('skip: JIT is not available'); ?>
 <?php if (!extension_loaded('zend-test')) die('skip: zend-test extension required'); ?>
 --FILE--
 <?php