summaryrefslogtreecommitdiff
path: root/tests/ubi-tests/mkvol_bad.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-11-16 09:56:52 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-11-16 10:09:54 +0200
commit7343528e5821c69224000ed7cfd3e8aaf47b7a93 (patch)
tree8f283ceefef028996c0ce1b5de9bf5214ed8752c /tests/ubi-tests/mkvol_bad.c
parent98ed9f3360bb5cbfb02d2cb82ee3167fce437772 (diff)
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 <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'tests/ubi-tests/mkvol_bad.c')
-rw-r--r--tests/ubi-tests/mkvol_bad.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/ubi-tests/mkvol_bad.c b/tests/ubi-tests/mkvol_bad.c
index 2292df6..27f4795 100644
--- a/tests/ubi-tests/mkvol_bad.c
+++ b/tests/ubi-tests/mkvol_bad.c
@@ -25,7 +25,8 @@
#include <errno.h>
#include <stdio.h>
#include "libubi.h"
-#define TESTNAME "mkvol_bad"
+#define PROGRAM_NAME "mkvol_bad"
+#include "common.h"
#include "helpers.h"
static libubi_t libubi;
@@ -41,7 +42,7 @@ static int test_mkvol(void)
{
int ret, i;
struct ubi_mkvol_request req;
- const char *name = TESTNAME ":test_mkvol()";
+ const char *name = PROGRAM_NAME ":test_mkvol()";
req.alignment = 1;
req.bytes = dev_info.avail_bytes;
@@ -201,7 +202,7 @@ static int test_mkvol(void)
if (errno == ENFILE)
break;
failed("ubi_mkvol");
- errmsg("vol_id %d", i);
+ errorm("vol_id %d", i);
goto remove;
}
}
@@ -226,7 +227,7 @@ static int test_rmvol(void)
{
int ret;
struct ubi_mkvol_request req;
- const char *name = TESTNAME ":test_rmvol()";
+ const char *name = PROGRAM_NAME ":test_rmvol()";
/* Bad vol_id */
ret = ubi_rmvol(libubi, node, -1);