~ubuntu-branches/ubuntu/quantal/libpeas/quantal

« back to all changes in this revision

Viewing changes to tests/libpeas/extension-seed.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2011-09-22 08:38:23 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: package-import@ubuntu.com-20110922083823-hm0gu89o2utvrxa9
Tags: 1.1.4-0ubuntu1
* New upstream release:
  - Fix to work with PyGObject 3.
  - Do not expose the peas_extension_set_call* API to GObject-Introspection.
  - Disable log hooks used by PyGObject and Seed.
  - Doc updates.
  - Misc improvement and fixes.
  - Translation updates.
* debian/control.in: Bump pygobject build dep as per configure.ac.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
  g_object_unref (extension);
65
65
}
66
66
 
 
67
static void
 
68
test_extension_seed_nonexistent (PeasEngine *engine)
 
69
{
 
70
  PeasPluginInfo *info;
 
71
 
 
72
  testing_util_push_log_hook ("*Failed to open *extension-seed-nonexistent.js*");
 
73
  testing_util_push_log_hook ("Error loading plugin 'extension-seed-nonexistent'");
 
74
 
 
75
  info = peas_engine_get_plugin_info (engine, "extension-seed-nonexistent");
 
76
 
 
77
  g_assert (!peas_engine_load_plugin (engine, info));
 
78
}
 
79
 
67
80
int
68
81
main (int   argc,
69
82
      char *argv[])
75
88
  EXTENSION_TESTS (seed);
76
89
 
77
90
  EXTENSION_TEST (seed, "plugin-info", plugin_info);
 
91
  EXTENSION_TEST (seed, "nonexistent", nonexistent);
78
92
 
79
93
  return testing_run_tests ();
80
94
}