+2023-01-12 Bruno Haible <bruno@clisp.org>
+
+ error, verror tests: Add clarification.
+ * tests/test-error.c (main): Clarify why we don't test error_at_line
+ with a NULL filename.
+ * tests/test-verror.c (main): Clarify why we don't test verror_at_line
+ with a NULL filename.
+
2023-01-12 Bruno Haible <bruno@clisp.org>
verror: Add tests.
error_print_progname = print_no_progname;
error (0, 0, "hammer");
error (0, 0, "boing %d%d%d is too large", 1, 2, 3);
+ #if 0
+ /* The documentation does not describe the output if the file name is NULL. */
+ error_at_line (0, 0, NULL, 42, "drummer too loud");
+ #endif
error_at_line (0, 0, "d2/bar.c", 11, "bark too loud");
/* Verify error_message_count. */
ASSERT (error_message_count == 11);
error_print_progname = print_no_progname;
test_zero ("hammer");
test_zero ("boing %d%d%d is too large", 1, 2, 3);
+ #if 0
+ /* The documentation does not describe the output if the file name is NULL. */
+ test_zero_at_line (NULL, 42, "drummer too loud");
+ #endif
test_zero_at_line ("d2/bar.c", 11, "bark too loud");
/* Verify error_message_count. */
ASSERT (error_message_count == 11);