igt_aux.c

Source file: igt_aux.c

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Function: igt_fork_signal_helper

void igt_fork_signal_helper(void)

Fork a signal helper process.

Appendix

Example usage in code

gem_create.c:41
igt_describe("Create a buffer object with valid parameters.");
igt_subtest("create-valid") {
    igt_fork_signal_helper();
    /* Allocate a 4096-byte buffer */
    uint32_t handle = basic_alloc(fd, 4096);
    /* Verify handle is valid */
    igt_assert(handle > 0);
    /* Clean up */
    gem_close(fd, handle);
    igt_stop_signal_helper();
}

Function: igt_stop_signal_helper

void igt_stop_signal_helper(void)

Stop the signal helper process.

Appendix

Example usage in code

gem_create.c:41
igt_describe("Create a buffer object with valid parameters.");
igt_subtest("create-valid") {
    igt_fork_signal_helper();
    /* Allocate a 4096-byte buffer */
    uint32_t handle = basic_alloc(fd, 4096);
    /* Verify handle is valid */
    igt_assert(handle > 0);
    /* Clean up */
    gem_close(fd, handle);
    igt_stop_signal_helper();
}