]> granicus.if.org Git - php/commitdiff
Skip test case on non Windows platforms
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 29 Oct 2019 08:53:44 +0000 (09:53 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 29 Oct 2019 08:53:44 +0000 (09:53 +0100)
ext/ffi/tests/bug78270_2.phpt

index 965830caf3cc93bcac728875630656215ca20599..60ba27853e3a0c77b0aa548513825b2f8612533a 100644 (file)
@@ -3,6 +3,8 @@ FR #78270 (Usage of __vectorcall convention with FFI)
 --SKIPIF--
 <?php
 require_once('skipif.inc');
+if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
+
 $dll = 'php7' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll';
 try {
     FFI::cdef(<<<EOC