shm_open_should_fail
shm_open_should_fail(test_path, O_RDONLY, 0777, ENOENT);
shm_open_should_fail("blah", O_RDONLY, 0777, EINVAL);
shm_open_should_fail(test_path, O_WRONLY, 0777, EINVAL);
shm_open_should_fail(test_path, O_RDONLY | O_DIRECT, 0777, EINVAL);
shm_open_should_fail(SHM_ANON, O_RDONLY, 0777, EINVAL);
shm_open_should_fail((char *)1024, O_RDONLY, 0777, EFAULT);
shm_open_should_fail(page, O_RDONLY, 0777, ENAMETOOLONG);
shm_open_should_fail("/notreallythere", O_RDONLY, 0777, ENOENT);
shm_open_should_fail(test_path, O_RDONLY|O_CREAT|O_EXCL,