summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-11-02 10:02:08 +0000
committerThomas Wood <thomas.wood@intel.com>2015-11-11 14:20:55 +0000
commit36b8143c224b47f743d8881514bb348b9ee1d102 (patch)
tree40ec1c934e6dbbaaec0f417bfb44762ac844570e /tests
parent3bc3ab27eac6eace4c90c8da92b4e7570110263b (diff)
Add missing noreturn attribute to various functions
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_madvise.c2
-rw-r--r--tests/pm_rpm.c2
-rw-r--r--tests/testdisplay.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_madvise.c b/tests/gem_madvise.c
index 093d78ac..36408fe3 100644
--- a/tests/gem_madvise.c
+++ b/tests/gem_madvise.c
@@ -49,7 +49,7 @@ IGT_TEST_DESCRIPTION("Checks that the kernel reports EFAULT when trying to use"
static jmp_buf jmp;
-static void sigtrap(int sig)
+static void __attribute__((noreturn)) sigtrap(int sig)
{
longjmp(jmp, sig);
}
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index d43cc067..c4fb19ce 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -1386,7 +1386,7 @@ static void pci_d3_state_subtest(void)
igt_assert(!device_in_pci_d3());
}
-static void stay_subtest(void)
+static void __attribute__((noreturn)) stay_subtest(void)
{
disable_all_screens_and_wait(&ms_data);
diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 4efcb593..28875b2d 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -552,7 +552,7 @@ static void __attribute__((noreturn)) usage(char *name, char opt)
#define dump_resource(res) if (res) dump_##res()
-static void cleanup_and_exit(int ret)
+static void __attribute__((noreturn)) cleanup_and_exit(int ret)
{
close(drm_fd);
exit(ret);