diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-05-09 21:26:37 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-05-10 00:07:17 -0400 |
commit | b9af025b97e80e3c520eaf2a19fc35883d5f2f35 (patch) | |
tree | 238232ab922c941d867f80c76fb9b5f783b69637 | |
parent | 4e2bc456d20e331cb45cdef41f67d8fd734874e1 (diff) | |
download | pango-b9af025b97e80e3c520eaf2a19fc35883d5f2f35.tar.gz |
test-break: Make help output work again
test-break has a helpful text that explains
the maining of the output. Unfortunately,
the --help option is taken by g_test_init(),
so make this available with --legend.
-rw-r--r-- | tests/test-break.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test-break.c b/tests/test-break.c index 413fd088..51074d80 100644 --- a/tests/test-break.c +++ b/tests/test-break.c @@ -322,7 +322,7 @@ main (int argc, char *argv[]) /* allow to easily generate expected output for new test cases */ if (argc > 1) { - if (strcmp (argv[1], "--help") == 0) + if (strcmp (argv[1], "--legend") == 0) { g_print ("test-break uses the following symbols for log attrs\n\n"); g_print ("Breaks: Words:\n" @@ -331,8 +331,9 @@ main (int argc, char *argv[]) " c - char break e - word end\n" "\n" "Whitespace: Sentences:\n" - " x - expandable space s - sentence start\n" - " w - whitespace e - sentence end\n"); + " x - expandable space b - sentence boundary\n" + " w - whitespace s - sentence start\n" + " e - sentence end\n"); } else { |