]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fts: test-fts-tokenizer: Verify fts_tokenizer_create() return value
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 18 Oct 2018 10:55:53 +0000 (13:55 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 12 Feb 2019 13:41:20 +0000 (15:41 +0200)
src/lib-fts/test-fts-tokenizer.c

index 2136dcc6ab834e3d64ca01cd5ad23d892b8886d9..146ba996b38b902f23799089259ae633f17751f2 100644 (file)
@@ -549,8 +549,8 @@ test_fts_tokenizer_explicit_prefix(void)
                                struct fts_tokenizer *tok;
                                const char *error;
 
-                               fts_tokenizer_create(fts_tokenizer_generic, NULL, settings,
-                                                    &tok, &error);
+                               test_assert(fts_tokenizer_create(fts_tokenizer_generic, NULL, settings,
+                                                                &tok, &error) == 0);
                                test_tokenizer_inputs(
                                        tok, &input, 1,
                                        (search!=0) && (explicitprefix!=0)