From 7343528e5821c69224000ed7cfd3e8aaf47b7a93 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 16 Nov 2012 09:56:52 +0200 Subject: ubi-tests: switch to using common.h from the top level Sorry, the commit is huge, I just did not have time to split it. Signed-off-by: Artem Bityutskiy --- tests/ubi-tests/io_basic.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/ubi-tests/io_basic.c') diff --git a/tests/ubi-tests/io_basic.c b/tests/ubi-tests/io_basic.c index 8adb8e1..3a296b4 100644 --- a/tests/ubi-tests/io_basic.c +++ b/tests/ubi-tests/io_basic.c @@ -29,7 +29,8 @@ #include #include #include "libubi.h" -#define TESTNAME "io_basic" +#define PROGRAM_NAME "io_basic" +#include "common.h" #include "helpers.h" static libubi_t libubi; @@ -46,7 +47,7 @@ const char *node; static int test_basic(int type) { struct ubi_mkvol_request req; - const char *name = TESTNAME ":test_basic()"; + const char *name = PROGRAM_NAME ":test_basic()"; char vol_node[strlen(UBI_VOLUME_PATTERN) + 100]; req.vol_id = UBI_VOL_NUM_AUTO; @@ -95,7 +96,7 @@ static int test_aligned(int type) { unsigned int i, ebsz; struct ubi_mkvol_request req; - const char *name = TESTNAME ":test_aligned()"; + const char *name = PROGRAM_NAME ":test_aligned()"; char vol_node[strlen(UBI_VOLUME_PATTERN) + 100]; int alignments[] = ALIGNMENTS(dev_info.leb_size); -- cgit v1.2.3