... to avoid confusion when the local common.h shadows the top-level common.h.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
$(CC) $(CFLAGS) -I $(LIBUBI_PATH) -I../../include -DUDEV_SETTLE_HACK -c $(LIBUBI_PATH)/libubi.c -o libubi.o
ar cr libubi.a libubi.o
-$(TARGETS): $(addprefix $(BUILDDIR)/, common.o) libubi.a
+$(TARGETS): $(addprefix $(BUILDDIR)/, helpers.o) libubi.a
clean::
rm -f libubi.a
#include <sys/time.h>
#include <fcntl.h>
#include "libubi.h"
-#include "common.h"
+#include "helpers.h"
/**
* __initial_check - check that common prerequisites which are required to run
* The stuff which is common for many tests.
*/
-#ifndef __COMMON_H__
-#define __COMMON_H__
+#ifndef __HELPERS_H__
+#define __HELPERS_H__
#include <string.h>
#include <stdio.h>
}
#endif
-#endif /* !__COMMON_H__ */
+#endif /* !__HELPERS_H__ */
#include <sys/stat.h>
#include "libubi.h"
-#include "common.h"
+#include "helpers.h"
struct erase_block_info;
struct volume_info;
#include <fcntl.h>
#include "libubi.h"
#define TESTNAME "io_basic"
-#include "common.h"
+#include "helpers.h"
static libubi_t libubi;
static struct ubi_dev_info dev_info;
#include <fcntl.h>
#include "libubi.h"
#define TESTNAME "io_paral"
-#include "common.h"
+#include "helpers.h"
#define THREADS_NUM 4
#define ITERATIONS (1024 * 1)
#include <fcntl.h>
#include "libubi.h"
#define TESTNAME "io_basic"
-#include "common.h"
+#include "helpers.h"
static libubi_t libubi;
static struct ubi_dev_info dev_info;
#include <libubi.h>
#include <mtd/ubi-user.h>
#define TESTNAME "io_update"
-#include "common.h"
+#include "helpers.h"
static libubi_t libubi;
static struct ubi_dev_info dev_info;
#include <stdio.h>
#include "libubi.h"
#define TESTNAME "mkvol_bad"
-#include "common.h"
+#include "helpers.h"
static libubi_t libubi;
static struct ubi_dev_info dev_info;
#include <string.h>
#include "libubi.h"
#define TESTNAME "mkvol_basic"
-#include "common.h"
+#include "helpers.h"
static libubi_t libubi;
static struct ubi_dev_info dev_info;
#include <pthread.h>
#include "libubi.h"
#define TESTNAME "mkvol_paral"
-#include "common.h"
+#include "helpers.h"
#define THREADS_NUM 4
#define ITERATIONS 500
#include <fcntl.h>
#include "libubi.h"
#define TESTNAME "rsvol"
-#include "common.h"
+#include "helpers.h"
static libubi_t libubi;
static struct ubi_dev_info dev_info;
#include <unistd.h>
#include "libubi.h"
#define TESTNAME "rmvol"
-#include "common.h"
+#include "helpers.h"
#define SYSFS_FILE "/sys/class/ubi/ubi%d_%d/usable_eb_size"