Skip to content

Commit c5cf0af

Browse files
committed
Mark several phpdbg tests as xfail
Apparently, breakpoints and watchpoints are practically disabled if run with OPcache JIT under Windows, so we mark the affected tests as xfail in that case for the time being.
1 parent 0221b8b commit c5cf0af

17 files changed

+84
-0
lines changed

sapi/phpdbg/tests/breakpoints_001.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
Fundamental breakpoints functionality
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--PHPDBG--
410
b 3
511
r

sapi/phpdbg/tests/breakpoints_002.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
Preserve breakpoints on restart
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--PHPDBG--
410
b breakpoints_002.php:4
511
r

sapi/phpdbg/tests/breakpoints_003.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
Test deleting breakpoints
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--PHPDBG--
410
b 4
511
b del 0

sapi/phpdbg/tests/breakpoints_004.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
Test opcode breakpoints
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--PHPDBG--
410
b ZEND_ECHO
511
r

sapi/phpdbg/tests/exceptions_003.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
Test breaks on HANDLE_EXCEPTION
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--PHPDBG--
410
b 5
511
r

sapi/phpdbg/tests/finish_leave_001.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
test finish and leave commands
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--INI--
410
opcache.optimization_level=0
511
--PHPDBG--

sapi/phpdbg/tests/info_002.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
info constants test
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--PHPDBG--
410
b 10
511
r

sapi/phpdbg/tests/next_001.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
Test next command on function boundaries
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--PHPDBG--
410
b 4
511
r

sapi/phpdbg/tests/phpdbg_break_next.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
Test phpdbg_break_next() function
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--PHPDBG--
410
r
511
c

sapi/phpdbg/tests/run_002.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
Stdin and escaped args being passed to run command
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--CLEAN--
410
<?php
511
@unlink("run_002_tmp.fixture");

sapi/phpdbg/tests/set_exception_handler.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
set_exception_handler() in phpdbg
3+
--SKIPIF--
4+
<?php
5+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
6+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
7+
}
8+
?>
39
--PHPDBG--
410
r
511
c

sapi/phpdbg/tests/watch_001.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Test simple recursive watchpoint
55
if (PHP_INT_SIZE == 4) {
66
die("xfail There may be flaws in the implementation of watchpoints that cause failures");
77
}
8+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
9+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
10+
}
811
if (getenv('SKIP_ASAN')) {
912
die("skip intentionally causes segfaults");
1013
}

sapi/phpdbg/tests/watch_002.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Test simple array watchpoint with replace
55
if (PHP_INT_SIZE == 4) {
66
die("xfail There may be flaws in the implementation of watchpoints that cause failures");
77
}
8+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
9+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
10+
}
811
if (getenv('SKIP_ASAN')) {
912
die("skip intentionally causes segfaults");
1013
}

sapi/phpdbg/tests/watch_003.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Test simple watchpoint with replace
55
if (PHP_INT_SIZE == 4) {
66
die("xfail There may be flaws in the implementation of watchpoints that cause failures");
77
}
8+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
9+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
10+
}
811
if (getenv('SKIP_ASAN')) {
912
die("skip intentionally causes segfaults");
1013
}

sapi/phpdbg/tests/watch_004.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Test detection of inline string manipulations on zval watch
55
if (PHP_INT_SIZE == 4) {
66
die("xfail There may be flaws in the implementation of watchpoints that cause failures");
77
}
8+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
9+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
10+
}
811
if (getenv('SKIP_ASAN')) {
912
die("skip intentionally causes segfaults");
1013
}

sapi/phpdbg/tests/watch_005.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Test proper watch comparisons when having multiple levels of indirection from a
55
if (PHP_INT_SIZE == 4) {
66
die("xfail There may be flaws in the implementation of watchpoints that cause failures");
77
}
8+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
9+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
10+
}
811
if (getenv('SKIP_ASAN')) {
912
die("skip intentionally causes segfaults");
1013
}

sapi/phpdbg/tests/watch_006.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Test multiple watch elements pointing to the same watchpoint
55
if (PHP_INT_SIZE == 4) {
66
die("xfail There may be flaws in the implementation of watchpoints that cause failures");
77
}
8+
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
9+
die('xfail breakpoint/watchpoint issues with JIT on Windows');
10+
}
811
if (getenv('SKIP_ASAN')) {
912
die("skip intentionally causes segfaults");
1013
}

0 commit comments

Comments
 (0)