Annotation of embedaddon/php/ext/posix/tests/posix_ctermid.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Test posix_ctermid()
                      3: --DESCRIPTION--
                      4: Gets path name of controlling terminal.
                      5: Source code: ext/posix/posix.c
                      6: --CREDITS--
                      7: Falko Menge, mail at falko-menge dot de
                      8: PHP Testfest Berlin 2009-05-10
                      9: --SKIPIF--
                     10: <?php 
                     11:        if (!extension_loaded('posix')) { 
                     12:         die('SKIP - POSIX extension not available');
                     13:     }
                     14:     // needed because of #ifdef HAVE_CTERMID in posix.c
                     15:     if (!function_exists('posix_ctermid')) { 
1.1.1.2 ! misho      16:         die('SKIP - Function posix_ctermid() not available');
1.1       misho      17:     }
                     18: ?>
                     19: --FILE--
                     20: <?php
                     21:     var_dump(posix_ctermid());
                     22: ?>
                     23: ===DONE===
                     24: --EXPECTF--
                     25: string(%d) "%s"
                     26: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>