Lines Matching refs:VALID_SHM_PATH
18 #define VALID_SHM_PATH "/foo" macro
54 zassert_not_ok(shm_open(VALID_SHM_PATH, INVALID_FLAGS, INVALID_MODE)); in ZTEST()
55 zassert_not_ok(shm_open(VALID_SHM_PATH, INVALID_FLAGS, VALID_MODE)); in ZTEST()
56 zassert_not_ok(shm_open(VALID_SHM_PATH, VALID_FLAGS, INVALID_MODE)); in ZTEST()
60 fd[0] = shm_open(VALID_SHM_PATH, VALID_FLAGS, VALID_MODE); in ZTEST()
61 zassert_true(fd[0] >= 0, "shm_open(%s, %x, %04o) failed: %d", VALID_SHM_PATH, VALID_FLAGS, in ZTEST()
71 ret = shm_unlink(VALID_SHM_PATH); in ZTEST()
77 fd[i] = shm_open(VALID_SHM_PATH, i == 0 ? CREATE_FLAGS : OPEN_FLAGS, VALID_MODE); in ZTEST()
78 zassert_true(fd[i] >= 0, "shm_open(%s, %x, %04o) failed: %d", VALID_SHM_PATH, in ZTEST()
81 zassert_ok(shm_unlink(VALID_SHM_PATH)); in ZTEST()
100 fd = shm_open(VALID_SHM_PATH, VALID_FLAGS, VALID_MODE); in ZTEST()
101 zassert_true(fd >= 0, "shm_open(%s, %x, %04o) failed: %d", VALID_SHM_PATH, VALID_FLAGS, in ZTEST()
105 zassert_ok(shm_unlink(VALID_SHM_PATH)); in ZTEST()
107 zassert_not_ok(shm_open(VALID_SHM_PATH, OPEN_FLAGS, VALID_MODE)); in ZTEST()
117 fd[i] = shm_open(VALID_SHM_PATH, i == 0 ? CREATE_FLAGS : OPEN_FLAGS, VALID_MODE); in ZTEST()
118 zassert_true(fd[i] >= 0, "shm_open(%s, %x, %04o) failed: %d", VALID_SHM_PATH, in ZTEST()
148 zassert_ok(shm_unlink(VALID_SHM_PATH)); in ZTEST()
161 fd[i] = shm_open(VALID_SHM_PATH, i == 0 ? CREATE_FLAGS : OPEN_FLAGS, VALID_MODE); in ZTEST()
162 zassert_true(fd[i] >= 0, "shm_open(%s, %x, %04o) failed: %d", VALID_SHM_PATH, in ZTEST()
197 zassert_ok(shm_unlink(VALID_SHM_PATH)); in ZTEST()