summaryrefslogtreecommitdiff
path: root/tests-clar/clar/print.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/clar/print.h')
-rw-r--r--tests-clar/clar/print.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/tests-clar/clar/print.h b/tests-clar/clar/print.h
deleted file mode 100644
index 368016f2f..000000000
--- a/tests-clar/clar/print.h
+++ /dev/null
@@ -1,60 +0,0 @@
-
-static void clar_print_init(int test_count, int suite_count, const char *suite_names)
-{
- (void)test_count;
- printf("Loaded %d suites: %s\n", (int)suite_count, suite_names);
- printf("Started\n");
-}
-
-static void clar_print_shutdown(int test_count, int suite_count, int error_count)
-{
- (void)test_count;
- (void)suite_count;
- (void)error_count;
-
- printf("\n\n");
- clar_report_errors();
-}
-
-static void clar_print_error(int num, const struct clar_error *error)
-{
- printf(" %d) Failure:\n", num);
-
- printf("%s::%s [%s:%d]\n",
- error->suite,
- error->test,
- error->file,
- error->line_number);
-
- printf(" %s\n", error->error_msg);
-
- if (error->description != NULL)
- printf(" %s\n", error->description);
-
- printf("\n");
- fflush(stdout);
-}
-
-static void clar_print_ontest(const char *test_name, int test_number, int failed)
-{
- (void)test_name;
- (void)test_number;
- printf("%c", failed ? 'F' : '.');
- fflush(stdout);
-}
-
-static void clar_print_onsuite(const char *suite_name, int suite_index)
-{
- if (_clar.report_suite_names)
- printf("\n%s", suite_name);
-
- (void)suite_index;
-}
-
-static void clar_print_onabort(const char *msg, ...)
-{
- va_list argp;
- va_start(argp, msg);
- vfprintf(stderr, msg, argp);
- va_end(argp);
-}