• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/apr-32/apr/apr/test/

Lines Matching refs:rv

66     apr_status_t rv;
69 rv = apr_shm_create(&shm, SHARED_SIZE, NULL, p);
70 APR_ASSERT_SUCCESS(tc, "Error allocating shared memory block", rv);
73 rv = apr_shm_destroy(shm);
74 APR_ASSERT_SUCCESS(tc, "Error destroying shared memory block", rv);
79 apr_status_t rv;
83 rv = apr_shm_create(&shm, SHARED_SIZE, NULL, p);
84 APR_ASSERT_SUCCESS(tc, "Error allocating shared memory block", rv);
90 rv = apr_shm_destroy(shm);
91 APR_ASSERT_SUCCESS(tc, "Error destroying shared memory block", rv);
96 apr_status_t rv;
99 rv = apr_shm_create(&shm, SHARED_SIZE, NULL, p);
100 APR_ASSERT_SUCCESS(tc, "Error allocating shared memory block", rv);
106 rv = apr_shm_destroy(shm);
107 APR_ASSERT_SUCCESS(tc, "Error destroying shared memory block", rv);
114 apr_status_t rv;
120 rv = apr_shm_create(&shm, SHARED_SIZE, NULL, p);
121 APR_ASSERT_SUCCESS(tc, "Error allocating shared memory block", rv);
130 rv = apr_proc_fork(&proc, p);
131 if (rv == APR_INCHILD) { /* child */
138 else if (rv == APR_INPARENT) { /* parent */
153 rv = apr_proc_wait(&proc, &recvd, NULL, APR_WAIT);
156 rv = apr_shm_destroy(shm);
157 APR_ASSERT_SUCCESS(tc, "Error destroying shared memory block", rv);
163 apr_status_t rv;
174 rv = apr_shm_create(&shm, SHARED_SIZE, SHARED_FILENAME, p);
175 APR_ASSERT_SUCCESS(tc, "Error allocating shared memory block", rv);
176 if (rv != APR_SUCCESS) {
187 rv = apr_procattr_create(&attr1, p);
189 APR_ASSERT_SUCCESS(tc, "Couldn't create attr1", rv);
191 rv = apr_procattr_cmdtype_set(attr1, APR_PROGRAM_ENV);
192 APR_ASSERT_SUCCESS(tc, "Couldn't set copy environment", rv);
196 rv = apr_proc_create(&pidproducer, TESTBINPATH "testshmproducer" EXTENSION, args,
198 APR_ASSERT_SUCCESS(tc, "Couldn't launch producer", rv);
200 rv = apr_procattr_create(&attr2, p);
202 APR_ASSERT_SUCCESS(tc, "Couldn't create attr2", rv);
204 rv = apr_procattr_cmdtype_set(attr2, APR_PROGRAM_ENV);
205 APR_ASSERT_SUCCESS(tc, "Couldn't set copy environment", rv);
208 rv = apr_proc_create(&pidconsumer, TESTBINPATH "testshmconsumer" EXTENSION, args,
210 APR_ASSERT_SUCCESS(tc, "Couldn't launch consumer", rv);
212 rv = apr_proc_wait(&pidconsumer, &received, &why, APR_WAIT);
213 ABTS_INT_EQUAL(tc, APR_CHILD_DONE, rv);
216 rv = apr_proc_wait(&pidproducer, &sent, &why, APR_WAIT);
217 ABTS_INT_EQUAL(tc, APR_CHILD_DONE, rv);
233 apr_status_t rv;
238 rv = apr_shm_create(&shm, SHARED_SIZE, SHARED_FILENAME, p);
239 APR_ASSERT_SUCCESS(tc, "Error allocating shared memory block", rv);
240 if (rv != APR_SUCCESS) {
245 rv = apr_shm_remove(SHARED_FILENAME, p);
250 if (rv == APR_SUCCESS)
252 rv = apr_shm_create(&shm2, SHARED_SIZE, SHARED_FILENAME, p);
253 APR_ASSERT_SUCCESS(tc, "Error allocating shared memory block", rv);
254 if (rv != APR_SUCCESS) {
259 rv = apr_shm_destroy(shm2);
260 APR_ASSERT_SUCCESS(tc, "Error destroying shared memory block", rv);
263 rv = apr_shm_destroy(shm);
264 APR_ASSERT_SUCCESS(tc, "Error destroying shared memory block", rv);
267 rv = apr_shm_attach(&shm, SHARED_FILENAME, p);
268 ABTS_TRUE(tc, rv != 0);