~ubuntu-branches/ubuntu/quantal/gengetopt/quantal

« back to all changes in this revision

Viewing changes to tests/test_usage.c

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-09-26 10:27:31 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: package-import@ubuntu.com-20110926102731-vh42p0vriqz4kp3h
Tags: 2.22.5-1
* New upstream release:
  - correctly wraps and preprocess the specified usage string
  - handle escaped newline chars in the .ggo file correctly
  - initialize enum variables with a generated null value (makes
    the parser compilable in C++)
  - removed warnings in generated parser when only flags are used
* Fix gbp config file.
* Bump Standards.
* Drop unneeded dependency on dpkg (>= 1.15.4), stable has a newer version.
* Refresh patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* test_usage.c test */
 
2
 
 
3
/* test correct formatting of usage specification */
 
4
 
 
5
#include <stdlib.h>
 
6
#include <stdio.h>
 
7
 
 
8
#include "test_usage_cmd.h"
 
9
 
 
10
static struct gengetopt_args_info args_info;
 
11
 
 
12
int
 
13
main (int argc, char **argv)
 
14
{  
 
15
  if (test_usage_cmd_parser (argc, argv, &args_info) != 0)
 
16
    exit(1) ;
 
17
 
 
18
  test_usage_cmd_parser_free (&args_info);
 
19
 
 
20
  return 0;
 
21
}