]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests: avoiding warnings
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Tue, 2 Jun 2015 09:00:47 +0000 (11:00 +0200)
committerGrigorii Demidov <grigorii.demidov@nic.cz>
Tue, 2 Jun 2015 09:00:47 +0000 (11:00 +0200)
tests/test_integration.c

index c39a58b7d6fef665bcd77327ab63d037736a5b6b..1a322029675e268b8872aff17dfcdc57c9c9afb3 100644 (file)
@@ -71,7 +71,8 @@ static PyObject* init(PyObject* self, PyObject* args)
        memset(&opts, 0, sizeof(opts));
        opts.path = global_tmpdir;
        opts.mapsize = 100 * 4096;
-       assert(kr_cache_open(&global_context.cache, NULL, &opts, &global_mm) == 0);
+       int ret = kr_cache_open(&global_context.cache, NULL, &opts, &global_mm);
+       assert(ret == 0);
 
        /* No configuration parsing support yet. */
        if (strstr(config, "query-minimization: on") == NULL) {