-
- waitpid(pid, &status, 0);
-
- switch(WEXITSTATUS(status))
- {
- case 1: RUNNER_ASSERT_MSG(false, "Child failed to connect to system bus.");
- case 2: RUNNER_ASSERT_MSG(false, "Child failed to request name on the bus.");
- case 3: RUNNER_ASSERT_MSG(false, "Child error - dbus_message_new_method_call() failed.");
- case 4: RUNNER_ASSERT_MSG(false, "Child error - out of memory.");
- case 5: RUNNER_ASSERT_MSG(false, "Child error - Pending call is NULL.");
- case 6: RUNNER_ASSERT_MSG(false, "Child failed to get the reply from bus.");
- case 7: RUNNER_ASSERT_MSG(false, "Child error - DBus message has no arguments.");
- case 8: RUNNER_ASSERT_MSG(false, "Child error - context mismatch.");
- default: ;
- }