From: Melvyn Sopacua Date: Mon, 4 Nov 2002 02:44:09 +0000 (+0000) Subject: Add test for both sysvsem and sysvshm X-Git-Tag: php-4.3.0RC1~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67efacc344ee09f37b9fda914158194a2984feda;p=php Add test for both sysvsem and sysvshm --- diff --git a/ext/sysvsem/tests/sysv.phpt b/ext/sysvsem/tests/sysv.phpt new file mode 100644 index 0000000000..830590c33b --- /dev/null +++ b/ext/sysvsem/tests/sysv.phpt @@ -0,0 +1,114 @@ +--TEST-- +General semaphore and shared memory test +--SKIP-- + +--INI-- +magic_quotes_runtime=0 +--FILE-- + +--EXPECTF-- +Start. +Got semaphore Resource id #%i. +Success aquire semaphore Resource id #%i. +Success to attach shared memory : %i. +Write var1 to shared memory. +Write var2 to shared memory. +Read var1=Variable 1. +Read var2=Variable 2. +Semaphore Resource id #%i released. +Shared memory successfully removed from SysV. +semaphore removed successfully from SysV. +End.