~ubuntu-branches/ubuntu/wily/syslog-ng/wily-proposed

« back to all changes in this revision

Viewing changes to modules/afmongodb/libmongo-client/tests/unit/mongo/sync-gridfs/sync_gridfs_free.c

  • Committer: Package Import Robot
  • Author(s): Gergely Nagy, Gergely Nagy
  • Date: 2013-11-04 15:27:37 UTC
  • mfrom: (1.3.12)
  • Revision ID: package-import@ubuntu.com-20131104152737-mqh6eqtna2xk97jq
Tags: 3.5.1-1
[ Gergely Nagy <algernon@madhouse-project.org> ]
* New upstream release.
  + Support auto-loading modules (Closes: #650814)
  + The SMTP module is available in syslog-ng-mod-smtp (Closes: #722746)
  + New modules: amqp, geoip, stomp, redis and smtp.
  + Multi-line input support (indented multiline and regexp-based)
  + Template type hinting for the MongoDB destination and $(format-json)
  + Support for unit suffixes in the configuration file
  + New filters, template functions and other miscellaneous changes
* New (team) maintainer, Laszlo Boszormenyi, Attila Szalay and myself
  added to Uploaders.
* Ship /var/lib/syslog-ng in the syslog-ng-core package, instead of
  creating it in the init script. Thanks Michael Biebl
  <biebl@debian.org> for the report & assistance. (Closes: #699942, #719910)
* Use dh-systemd for proper systemd-related maintainer scripts. Based on
  a patch by Michael Biebl <biebl@debian.org>. (Closes: #713982,
  #690067)
* Do not wait for syslog-ng to settle down during installation / update.
  This also fixes installing via debootstrap and a fake
  start-stop-daemon. (Closes: #714254)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
  errno = 0;
13
13
  mongo_sync_gridfs_free (NULL, FALSE);
14
14
  cmp_ok (errno, "==", ENOTCONN,
15
 
          "mongo_sync_gridfs_free() with a NULL connection shall set errno");
 
15
          "mongo_sync_gridfs_free() with a NULL connection shall set errno");
16
16
 
17
17
  begin_network_tests (2);
18
18
 
21
21
 
22
22
  mongo_sync_gridfs_free (gfs, FALSE);
23
23
  cmp_ok (errno, "==", 0,
24
 
          "mongo_sync_gridfs_free() should clear errno on success");
 
24
          "mongo_sync_gridfs_free() should clear errno on success");
25
25
 
26
26
  gfs = mongo_sync_gridfs_new (conn, config.gfs_prefix);
27
27
  mongo_sync_gridfs_free (gfs, TRUE);
28
28
  cmp_ok (errno, "==", 0,
29
 
          "mongo_sync_gridfs_free() works when asked to free the "
30
 
          "connection too");
 
29
          "mongo_sync_gridfs_free() works when asked to free the "
 
30
          "connection too");
31
31
 
32
32
  end_network_tests ();
33
33
}