diff options
author | Russ Allbery <rra@stanford.edu> | 2008-09-12 16:28:37 -0700 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2008-09-12 16:28:37 -0700 |
commit | d37ae91f8d89005d7672e56a1b47488569c3a75c (patch) | |
tree | 035eaff4987158dee8b17280ac92ac4c86adaff9 /php | |
parent | 37e44fc104870bb225e56a2a076a7e93e1c87da2 (diff) |
PHP: fix skipping tests
Don't skip tests just because the module isn't loaded; if the module
isn't loaded, something has gone horribly wrong. That also removes
the syntax error in that part of the skip code which was preventing
the skip code from checking whether remctld was running.
Diffstat (limited to 'php')
-rw-r--r-- | php/tests/002.phpt | 4 | ||||
-rw-r--r-- | php/tests/003.phpt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/php/tests/002.phpt b/php/tests/002.phpt index d50df72..5c99938 100644 --- a/php/tests/002.phpt +++ b/php/tests/002.phpt @@ -2,8 +2,8 @@ Check simplified remctl API --SKIPIF-- <?php - if (!extension_load("remctl")) print "skip"; - if (!file_exists("remctl-test.pid")) print "skip"; + if (!file_exists("remctl-test.pid")) + echo "skip remctld not running"; ?> --FILE-- <?php diff --git a/php/tests/003.phpt b/php/tests/003.phpt index 715ecc7..94cc842 100644 --- a/php/tests/003.phpt +++ b/php/tests/003.phpt @@ -2,8 +2,8 @@ Check full remctl API --SKIPIF-- <?php - if (!extension_load("remctl")) print "skip"; - if (!file_exists("remctl-test.pid")) print "skip"; + if (!file_exists("remctl-test.pid")) + echo "skip remctld not running"; ?> --FILE-- <?php |