--TEST-- General semaphore and shared memory test --SKIPIF-- --FILE-- --EXPECT-- Start. Got semaphore. Success acquire semaphore. Success to attach shared memory. Write var1 to shared memory. Write var2 to shared memory. Read var1=Variable 1. Read var2=Variable 2. Semaphore released. Shared memory successfully removed from SysV. semaphore removed successfully from SysV. End.