diff options
| author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-09-16 14:16:42 -0300 |
|---|---|---|
| committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-10-14 12:07:20 -0300 |
| commit | 9c144e0d8217d1ef7a83c2498214308b21af749f (patch) | |
| tree | d977ba0d8601de477c52f62accf02c120ef06253 /ext/pcntl/tests | |
| parent | b419732ddb0673dc5b15a67ee4bc7f06dd90d7d0 (diff) | |
| download | php-git-9c144e0d8217d1ef7a83c2498214308b21af749f.tar.gz | |
Trim trailing whitespace in tests
Diffstat (limited to 'ext/pcntl/tests')
| -rw-r--r-- | ext/pcntl/tests/001.phpt | 8 | ||||
| -rw-r--r-- | ext/pcntl/tests/async_signals.phpt | 2 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_exec.phpt | 4 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_exec_2.phpt | 4 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_fork_basic.phpt | 2 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_fork_variation.phpt | 12 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_get_last_error.phpt | 4 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_signal_dispatch.phpt | 2 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_wait_rusage1.phpt | 2 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_waitpid_rusage1.phpt | 2 | ||||
| -rw-r--r-- | ext/pcntl/tests/signal_closure_handler.phpt | 2 |
11 files changed, 22 insertions, 22 deletions
diff --git a/ext/pcntl/tests/001.phpt b/ext/pcntl/tests/001.phpt index fb1006e4bd..6aedbaf33b 100644 --- a/ext/pcntl/tests/001.phpt +++ b/ext/pcntl/tests/001.phpt @@ -2,11 +2,11 @@ Test pcntl wait functionality --SKIPIF-- <?php - if (!extension_loaded("pcntl")) print "skip"; + if (!extension_loaded("pcntl")) print "skip"; elseif (!function_exists("posix_kill")) print "skip posix_kill() not available"; ?> --FILE-- -<?php +<?php function test_exit_waits(){ print "\n\nTesting pcntl_wifexited and wexitstatus...."; @@ -25,7 +25,7 @@ function test_exit_signal(){ print "\n\nTesting pcntl_wifsignaled...."; $pid=pcntl_fork(); - + if ($pid==0) { sleep(10); exit; @@ -47,7 +47,7 @@ function test_stop_signal(){ print "\n\nTesting pcntl_wifstopped and pcntl_wstopsig...."; $pid=pcntl_fork(); - + if ($pid==0) { sleep(1); exit; diff --git a/ext/pcntl/tests/async_signals.phpt b/ext/pcntl/tests/async_signals.phpt index 86b006295d..8e30204ab4 100644 --- a/ext/pcntl/tests/async_signals.phpt +++ b/ext/pcntl/tests/async_signals.phpt @@ -2,7 +2,7 @@ Asynchronous signal handling through VM interrupts --SKIPIF-- <?php - if (!extension_loaded("pcntl")) print "skip"; + if (!extension_loaded("pcntl")) print "skip"; elseif (!function_exists("pcntl_signal")) print "skip pcntl_signal() not available"; elseif (!function_exists("posix_kill")) print "skip posix_kill() not available"; elseif (!function_exists("posix_getpid")) print "skip posix_getpid() not available"; diff --git a/ext/pcntl/tests/pcntl_exec.phpt b/ext/pcntl/tests/pcntl_exec.phpt index 9a2c96ea38..b1225221de 100644 --- a/ext/pcntl/tests/pcntl_exec.phpt +++ b/ext/pcntl/tests/pcntl_exec.phpt @@ -1,8 +1,8 @@ --TEST-- pcntl_exec() --SKIPIF-- -<?php -if (!extension_loaded("pcntl")) print "skip"; +<?php +if (!extension_loaded("pcntl")) print "skip"; if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); ?> --FILE-- diff --git a/ext/pcntl/tests/pcntl_exec_2.phpt b/ext/pcntl/tests/pcntl_exec_2.phpt index 5383593d97..72274ede5f 100644 --- a/ext/pcntl/tests/pcntl_exec_2.phpt +++ b/ext/pcntl/tests/pcntl_exec_2.phpt @@ -3,7 +3,7 @@ pcntl_exec() 2 --SKIPIF-- <?php -if (!extension_loaded("pcntl")) print "skip"; +if (!extension_loaded("pcntl")) print "skip"; if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); ?> @@ -15,7 +15,7 @@ if (getenv("PCNTL_EXEC_TEST_IS_CHILD")) { } echo "ok\n"; pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), array('-n', __FILE__), array( - "PCNTL_EXEC_TEST_IS_CHILD" => "1", + "PCNTL_EXEC_TEST_IS_CHILD" => "1", "FOO" => "BAR", 1 => "long") ); diff --git a/ext/pcntl/tests/pcntl_fork_basic.phpt b/ext/pcntl/tests/pcntl_fork_basic.phpt index b1e2a9bf68..59931df850 100644 --- a/ext/pcntl/tests/pcntl_fork_basic.phpt +++ b/ext/pcntl/tests/pcntl_fork_basic.phpt @@ -15,7 +15,7 @@ echo "*** Test by calling method or function with its expected arguments, first $pid = pcntl_fork(); if ($pid > 0) { - pcntl_wait($status); + pcntl_wait($status); var_dump($pid); } else { var_dump($pid); diff --git a/ext/pcntl/tests/pcntl_fork_variation.phpt b/ext/pcntl/tests/pcntl_fork_variation.phpt index 4eea07181c..c0708a93df 100644 --- a/ext/pcntl/tests/pcntl_fork_variation.phpt +++ b/ext/pcntl/tests/pcntl_fork_variation.phpt @@ -16,23 +16,23 @@ echo "*** Testing the process isolations between a process and its forks ***\n"; $pid = pcntl_fork(); if ($pid > 0) { - pcntl_wait($status); + pcntl_wait($status); echo "father is $pid\n"; - if (!isset($pid2)) + if (!isset($pid2)) { echo "father ($pid) doesn't know its grandsons\n"; } -} +} else { echo "son ($pid)\n"; $pid2 = pcntl_fork(); if ($pid2 > 0) - { - pcntl_wait($status2); + { + pcntl_wait($status2); echo "son is father of $pid2\n"; - } + } else { echo "grandson ($pid2)\n"; diff --git a/ext/pcntl/tests/pcntl_get_last_error.phpt b/ext/pcntl/tests/pcntl_get_last_error.phpt index 4ed66c9610..f1a517051c 100644 --- a/ext/pcntl/tests/pcntl_get_last_error.phpt +++ b/ext/pcntl/tests/pcntl_get_last_error.phpt @@ -2,10 +2,10 @@ Test pcntl_get_last_error() --SKIPIF-- <?php - if (!extension_loaded("pcntl")) print "skip"; + if (!extension_loaded("pcntl")) print "skip"; ?> --FILE-- -<?php +<?php var_dump(pcntl_get_last_error()); $pid = pcntl_wait($status); var_dump($pid); diff --git a/ext/pcntl/tests/pcntl_signal_dispatch.phpt b/ext/pcntl/tests/pcntl_signal_dispatch.phpt index a7a26dbf65..c64910fb36 100644 --- a/ext/pcntl/tests/pcntl_signal_dispatch.phpt +++ b/ext/pcntl/tests/pcntl_signal_dispatch.phpt @@ -2,7 +2,7 @@ pcnt_signal_dispatch() --SKIPIF-- <?php - if (!extension_loaded("pcntl")) print "skip"; + if (!extension_loaded("pcntl")) print "skip"; elseif (!function_exists("pcntl_signal")) print "skip pcntl_signal() not available"; elseif (!function_exists("pcntl_signal_dispatch")) print "skip pcntl_signal_dispatch() not available"; elseif (!function_exists("posix_kill")) print "skip posix_kill() not available"; diff --git a/ext/pcntl/tests/pcntl_wait_rusage1.phpt b/ext/pcntl/tests/pcntl_wait_rusage1.phpt index 6c9cd39540..b23195f914 100644 --- a/ext/pcntl/tests/pcntl_wait_rusage1.phpt +++ b/ext/pcntl/tests/pcntl_wait_rusage1.phpt @@ -25,7 +25,7 @@ if ($pid == -1) { pcntl_wait($status, 0, $rusage); var_dump(gettype($rusage)); var_dump(count($rusage)); - + $rusage = new stdClass; pcntl_wait($status, 0, $rusage); var_dump(gettype($rusage)); diff --git a/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt b/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt index 4ecc664bac..393dd59b9c 100644 --- a/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt +++ b/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt @@ -25,7 +25,7 @@ if ($pid == -1) { pcntl_waitpid($pid, $status, 0, $rusage); var_dump(gettype($rusage)); var_dump(count($rusage)); - + $rusage = new stdClass; pcntl_waitpid($pid, $status, 0, $rusage); var_dump(gettype($rusage)); diff --git a/ext/pcntl/tests/signal_closure_handler.phpt b/ext/pcntl/tests/signal_closure_handler.phpt index 106b928296..0df0061caa 100644 --- a/ext/pcntl/tests/signal_closure_handler.phpt +++ b/ext/pcntl/tests/signal_closure_handler.phpt @@ -2,7 +2,7 @@ Closures as a signal handler --SKIPIF-- <?php - if (!extension_loaded("pcntl")) print "skip"; + if (!extension_loaded("pcntl")) print "skip"; elseif (!function_exists("pcntl_signal")) print "skip pcntl_signal() not available"; elseif (!function_exists("posix_kill")) print "skip posix_kill() not available"; elseif (!function_exists("posix_getpid")) print "skip posix_getpid() not available"; |
