#include "testsuite.h"
-static int test_initlib(const struct test *t)
+static __noreturn int test_initlib(const struct test *t)
{
struct kmod_ctx *ctx;
const char *null_config = NULL;
static DEFINE_TEST(test_initlib,
.description = "test if libkmod's init function work");
-static int test_insert(const struct test *t)
+static __noreturn int test_insert(const struct test *t)
{
struct kmod_ctx *ctx;
struct kmod_module *mod;
},
.need_spawn = true);
-static int test_remove(const struct test *t)
+static __noreturn int test_remove(const struct test *t)
{
struct kmod_ctx *ctx;
struct kmod_module *mod;
#include "testsuite.h"
-static int modinfo_jonsmodules(const struct test *t)
+static __noreturn int modinfo_jonsmodules(const struct test *t)
{
const char *progname = ABS_TOP_BUILDDIR "/tools/modinfo";
const char *const args[] = {
#include "testsuite.h"
-static int modprobe_show_depends(const struct test *t)
+static __noreturn int modprobe_show_depends(const struct test *t)
{
const char *progname = ABS_TOP_BUILDDIR "/tools/modprobe";
const char *const args[] = {
.stdout = TESTSUITE_ROOTFS "test-modprobe/show-depends/correct.txt",
});
-static int modprobe_show_depends2(const struct test *t)
+static __noreturn int modprobe_show_depends2(const struct test *t)
{
const char *progname = ABS_TOP_BUILDDIR "/tools/modprobe";
const char *const args[] = {
#define TEST_UNAME "4.0.20-kmod"
-static int testsuite_uname(const struct test *t)
+static __noreturn int testsuite_uname(const struct test *t)
{
struct utsname u;
int err = uname(&u);
} \
#endif
+
+#define __noreturn __attribute__((noreturn))