~ubuntu-branches/ubuntu/trusty/geis/trusty

« back to all changes in this revision

Viewing changes to testsuite/geis2/check_error_codes.c

  • Committer: Package Import Robot
  • Author(s): Chase Douglas
  • Date: 2012-07-30 08:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20120730085142-jrc33ygjvt0ob1wl
Tags: upstream-2.2.11
ImportĀ upstreamĀ versionĀ 2.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * unit tests for GEIS v2.0 error codes
 
3
 */
 
4
#include <check.h>
 
5
 
 
6
#include <geis/geis.h>
 
7
 
 
8
/* compile-time test to ensure required types are defined */
 
9
START_TEST(error_codes)
 
10
{
 
11
  GeisStatus error = GEIS_STATUS_SUCCESS ;
 
12
  error = GEIS_STATUS_CONTINUE;
 
13
  error = GEIS_STATUS_EMPTY;
 
14
  error = GEIS_STATUS_NOT_SUPPORTED;
 
15
  error = GEIS_STATUS_BAD_ARGUMENT;
 
16
  error = GEIS_STATUS_UNKNOWN_ERROR;
 
17
}
 
18
END_TEST
 
19
 
 
20
 
 
21
/* boilerplate */
 
22
Suite *
 
23
geis2_error_codes_suite_new()
 
24
{
 
25
  Suite *s = suite_create("geis2_error_codes");
 
26
 
 
27
  TCase *create = tcase_create("error_codes");
 
28
  tcase_add_test(create, error_codes);
 
29
  suite_add_tcase(s, create);
 
30
 
 
31
  return s;
 
32
}
 
33