blob: d622ede6ac9c63331e67b3e554f161f4a9b61dd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "test.h"
#include "mongo.h"
#include <string.h>
#include "libmongo-private.h"
void
test_mongo_sync_pool_return (void)
{
mongo_sync_pool_connection c;
void *pool;
pool = g_malloc (1024);
ok (mongo_sync_pool_return (NULL, &c) == FALSE,
"mongo_sync_pool_return() should fail without a pool");
ok (mongo_sync_pool_return ((mongo_sync_pool *)pool, NULL) == FALSE,
"mongo_sync_pool_return() should fail without a connection");
g_free (pool);
}
RUN_TEST (2, mongo_sync_pool_return);
|