Skip to content

Commit

Permalink
Allow some tests to run in parallel, and mark others as unable to run…
Browse files Browse the repository at this point in the history
… in parallel
  • Loading branch information
derickr committed Feb 8, 2019
1 parent 28660ac commit 1abb15b
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/bug00003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ xdebug.trace_format=0
date.timezone=Europe/Oslo
--FILE--
<?php
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug00003.trace');
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug00003-' . uniqid() . '.trace');
strftime('%b %l %Y %H:%M:%S', 1061728888);
xdebug_stop_trace();
readfile($tf);
Expand Down
7 changes: 4 additions & 3 deletions tests/bug00314.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@
Test for bug #314: PHP CLI Error logging thwarted when Xdebug loaded
--SKIPIF--
<?php if (substr(PHP_OS, 0, 3) == "WIN") { exit("skip Not for Windows"); } ?>
<?php if (getenv("SKIP_UNPARALLEL_TESTS")) { exit("skip Excluding tests that can not be run in parallel"); } ?>
--INI--
xdebug.default_enable=1
xdebug.dump_globals=0
xdebug.show_mem_delta=0
xdebug.profiler_enable=0
xdebug.trace_format=0
log_errors=1
error_log=/tmp/bug315.log
error_log=/tmp/bug314.log
xdebug.collect_params=3
date.timezone=UTC
--FILE--
<?php
@unlink("/tmp/bug315.log");
@unlink("/tmp/bug314.log");
trigger_error('Error', E_USER_WARNING);
echo "FROM LOG\n";
echo file_get_contents("/tmp/bug315.log");
echo file_get_contents("/tmp/bug314.log");
?>
--EXPECTF--
Warning: Error in %sbug00314.php on line 3
Expand Down
2 changes: 2 additions & 0 deletions tests/bug00690-1.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test for bug #690: Function traces are not appended to file when xdebug_start_trace() is used with xdebug.trace_options=1 (step 1 of 2)
--SKIPIF--
<?php if (getenv("SKIP_UNPARALLEL_TESTS")) { exit("skip Excluding tests that can not be run in parallel"); } ?>
--INI--
xdebug.trace_output_name=trace.bug690
xdebug.trace_options=1
Expand Down
2 changes: 2 additions & 0 deletions tests/bug00690-2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test for bug #690: Function traces are not appended to file when xdebug_start_trace() is used with xdebug.trace_options=1 (step 2 of 2)
--SKIPIF--
<?php if (getenv("SKIP_UNPARALLEL_TESTS")) { exit("skip Excluding tests that can not be run in parallel"); } ?>
--INI--
xdebug.auto_trace=0
xdebug.trace_output_name=trace.bug690
Expand Down
1 change: 1 addition & 0 deletions tests/bug00964-1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Test for bug #964: IP retrival from X-Forwarded-For complies with RFC 7239 (without comma)
--SKIPIF--
<?php if (substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows"); ?>
<?php if (getenv("SKIP_UNPARALLEL_TESTS")) { exit("skip Excluding tests that can not be run in parallel"); } ?>
--ENV--
HTTP_X_FORWARDED_FOR=192.168.111.111
--INI--
Expand Down
1 change: 1 addition & 0 deletions tests/bug00964-2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Test for bug #964: IP retrival from X-Forwarded-For complies with RFC 7239 (with comma)
--SKIPIF--
<?php if (substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows"); ?>
<?php if (getenv("SKIP_UNPARALLEL_TESTS")) { exit("skip Excluding tests that can not be run in parallel"); } ?>
--ENV--
HTTP_X_FORWARDED_FOR=192.168.111.111, 10.1.2.3, 10.1.2.4
--INI--
Expand Down
8 changes: 4 additions & 4 deletions tests/trace_with_naked_filename.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ xdebug.show_mem_delta=0
xdebug.trace_format=0
--FILE--
<?php
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug971', XDEBUG_TRACE_COMPUTERIZED);
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug971' . uniqid(), XDEBUG_TRACE_COMPUTERIZED);
echo $tf, "\n";
xdebug_stop_trace();
unlink($tf);

$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug971', XDEBUG_TRACE_COMPUTERIZED | XDEBUG_TRACE_NAKED_FILENAME);
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug971' . uniqid(), XDEBUG_TRACE_COMPUTERIZED | XDEBUG_TRACE_NAKED_FILENAME);
echo $tf, "\n";
xdebug_stop_trace();
unlink($tf);
?>
--EXPECTF--
%sbug971.xt
%sbug971
%sbug971%s.xt
%sbug971%s

0 comments on commit 1abb15b

Please sign in to comment.