aboutsummaryrefslogtreecommitdiff
path: root/src/test/test-child.c
blob: 100e8c0f321fc09588bf1662ad9d8d2953930ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

/** Trivial test program which prints out its command line arguments so we can
 * check if tor_spawn_background() works */
int
main(int argc, char **argv)
{
  int i;

  fprintf(stdout, "OUT\n");
  fprintf(stderr, "ERR\n");
  for (i = 0; i < argc; i++)
    fprintf(stdout, "%s\n", argv[i]);
  fprintf(stdout, "DONE\n");

  return 0;
}