Requested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
}
}
-int igt_retval(void)
+void igt_exit(void)
{
if (igt_only_list_subtests())
return 0;
assert(skipped_one || succeeded_one || failed_one);
if (failed_one)
- return igt_exitcode;
+ exit(igt_exitcode);
else if (succeeded_one)
- return 0;
+ exit(0);
else
- return 77;
+ exit(77);
}
static bool env_set(const char *env_var, bool default_value)
void igt_skip(void);
void igt_success(void);
void igt_fail(int exitcode) __attribute__((noreturn));
-int igt_retval(void);
+void igt_exit(void);
/* check functions which auto-skip tests by calling igt_skip() */
void gem_check_caching(int fd);
close(fd);
- return igt_retval();
+ igt_exit();
}
close(fd);
- return igt_retval();
+ igt_exit();
}
close(fd);
- return igt_retval();
+ igt_exit();
}
close(fd);
- return igt_retval();
+ igt_exit();
}
close(fd);
- return igt_retval();
+ igt_exit();
}
close(fd);
- return igt_retval();
+ igt_exit();
}
close(fd);
- return igt_retval();
+ igt_exit();
}
close(fd);
- return igt_retval();
+ igt_exit();
}
close(fd);
- return igt_retval();
+ igt_exit();
}