aboutsummaryrefslogtreecommitdiff
path: root/tests/testutils.c
diff options
context:
space:
mode:
authorDavid Gibson <dgibson@sneetch.ozlabs.ibm.com>2005-11-18 16:07:53 +1100
committerDavid Gibson <dgibson@sneetch.ozlabs.ibm.com>2005-11-18 16:07:53 +1100
commitc884caf4c39ed3c5ee41009fa5573dc5d4bf5dbf (patch)
tree1aa5c09a66a6422ffc7657893bf4c98ec99208e6 /tests/testutils.c
downloadlibhugetlbfs-c884caf4c39ed3c5ee41009fa5573dc5d4bf5dbf.tar.gz
First cut.
Diffstat (limited to 'tests/testutils.c')
-rw-r--r--tests/testutils.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/testutils.c b/tests/testutils.c
new file mode 100644
index 0000000..2a46f9e
--- /dev/null
+++ b/tests/testutils.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "hugetests.h"
+
+int verbose_test = 1;
+char *test_name;
+
+void __attribute__((weak)) cleanup(void)
+{
+}
+
+void test_init(int argc, char *argv[])
+{
+ test_name = argv[0];
+
+ if (getenv("QUIET_TEST"))
+ verbose_test = 0;
+}