From f466a3aa867d27d52a2f01de9fb7287155f70730 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 4 Aug 2016 08:05:55 +0100 Subject: [PATCH] DO NOT APPLY a test that always returns error --- tests/error/Makefile | 9 +++++++++ tests/error/main.c | 26 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tests/error/Makefile create mode 100644 tests/error/main.c diff --git a/tests/error/Makefile b/tests/error/Makefile new file mode 100644 index 0000000..604cd6e --- /dev/null +++ b/tests/error/Makefile @@ -0,0 +1,9 @@ +include $(ROOT)/build/common.mk + +NAME := error +CATEGORY := functional +TEST-ENVS := hvm32 + +obj-perenv += main.o + +include $(ROOT)/build/gen.mk diff --git a/tests/error/main.c b/tests/error/main.c new file mode 100644 index 0000000..993e1c7 --- /dev/null +++ b/tests/error/main.c @@ -0,0 +1,26 @@ +/** + * @file tests/error/main.c + * @ref test-error - TODO. + * + * @page test-error TODO + * + * @see tests/error/main.c + */ +#include + +void test_main(void) +{ + printk("Test always returns error\n"); + + xtf_error("Error here"); +} + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * tab-width: 4 + * indent-tabs-mode: nil + * End: + */ -- 2.39.5