--- /dev/null
+Sun Oct 29 14:03:37 2006 Ben Pfaff <blp@gnu.org>
+
+ * ll-test.c, llx-test.c: Reduce verbosity of output.
+
+----------------------------------------------------------------------
+Local Variables:
+mode: change-log
+version-control: never
+End:
#define UNUSED
#endif
+/* Currently running test. */
+static const char *test_name;
+
/* Exit with a failure code.
(Place a breakpoint on this function while debugging.) */
static void
{
if (!ok)
{
- printf ("check failed at %s, line %d\n", __FILE__, line);
+ printf ("Check failed in %s test at %s, line %d\n",
+ test_name, __FILE__, line);
check_die ();
}
}
static void
run_test (void (*test_function) (void), const char *name)
{
- printf ("Running %s test... ", name);
+ test_name = name;
+ putchar ('.');
fflush (stdout);
test_function ();
- printf ("done.\n");
}
int
run_test (test_sort_unique, "sort_unique");
run_test (test_insert_ordered, "insert_ordered");
run_test (test_partition, "partition");
+ putchar ('\n');
return 0;
}
#define UNUSED
#endif
+/* Currently running test. */
+static const char *test_name;
+
/* Exit with a failure code.
(Place a breakpoint on this function while debugging.) */
static void
{
if (!ok)
{
- printf ("check failed at %s, line %d\n", __FILE__, line);
+ printf ("Check failed in %s test at %s, line %d\n",
+ test_name, __FILE__, line);
check_die ();
}
}
static void
run_test (void (*test_function) (void), const char *name)
{
- printf ("Running %s test... ", name);
+ test_name = name;
+ putchar ('.');
fflush (stdout);
test_function ();
- printf ("done.\n");
}
int
run_test (test_insert_ordered, "insert_ordered");
run_test (test_partition, "partition");
run_test (test_allocation_failure, "allocation failure");
+ putchar ('\n');
return 0;
}