~oif-team/geis/geis2_add_regions

« back to all changes in this revision

Viewing changes to testsuite/geis2/check_config.c

  • Committer: Stephen M. Webb
  • Date: 2010-12-06 12:10:40 UTC
  • mfrom: (87.1.25 geis2)
  • Revision ID: stephen.webb@canonical.com-20101206121040-y9dnfcl89kdot63t
Added a back end base and test fixture.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
static void
13
13
construct_geis()
14
14
{
15
 
  geis = geis_new("geis-test-fixture", NULL);
 
15
  geis = geis_new(GEIS_INIT_UTOUCH_MOCK_ENGINE, NULL);
16
16
}
17
17
 
18
18
/* fixture teardown */
37
37
START_TEST(get_fail)
38
38
{
39
39
  int fd = -1;
40
 
  GeisStatus status = geis_get_configuration(geis, 1234, &fd);
 
40
  GeisStatus status = geis_get_configuration(geis, "no such configuration", &fd);
41
41
  fail_unless(status == GEIS_STATUS_NOT_SUPPORTED,
42
42
              "unexpected return status from geis_get_configuration()");
43
43
}