]> git.notmuchmail.org Git - notmuch/blobdiff - test/random-corpus.c
test: basic: drop 'ensure all available tests are run'
[notmuch] / test / random-corpus.c
index f354d4b92c9f9e82d5cdccf6aa9360c3e729dc28..790193d2ee3eed2f5b7edbb4b4e7f3637f6f23d4 100644 (file)
@@ -96,7 +96,9 @@ random_utf8_string (void *ctx, size_t char_count)
            buf = talloc_realloc (ctx, buf, gchar, buf_size);
        }
 
-       randomchar = random_unichar ();
+       do {
+           randomchar = random_unichar ();
+       } while (randomchar == '\n');
 
        written = g_unichar_to_utf8 (randomchar, buf + offset);
 
@@ -158,7 +160,7 @@ main (int argc, char **argv)
        exit (1);
     }
 
-    config = notmuch_config_open (ctx, config_path, NULL);
+    config = notmuch_config_open (ctx, config_path, FALSE);
     if (config == NULL)
        return 1;