summaryrefslogtreecommitdiff
path: root/tests/test-append-count.c
blob: 6d0ade76d35722e24b8aa439c714cb6f51d9e717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <config.h>
#include <disfluid.h>
#include <stdio.h>

int
main (int argc, char *argv[])
{
  /* This is just a test runner, do not call bindtextdomain () */
  if (argc != 2)
    {
      fprintf (stderr, "Usage: test-append-hello <test file>\n");
      return 1;
    }
  size_t n;
  if (disfluid_test_append_count (argv[1], &n) < 0)
    {
      return 1;
    }
  printf ("%lu\n", n);
  return 0;
}