2 test_description='run code with ASAN enabled against the library'
3 . $(dirname "$0")/test-lib.sh || exit 1
5 if [ $NOTMUCH_HAVE_ASAN -ne 1 ]; then
6 printf "Skipping due to missing ASAN support\n"
12 TEST_CFLAGS="-fsanitize=address"
14 test_begin_subtest "open and destroy"
15 test_C ${MAIL_DIR} ${NOTMUCH_CONFIG} <<EOF
19 int main(int argc, char **argv) {
20 notmuch_database_t *db = NULL;
22 notmuch_status_t st = notmuch_database_open_with_config(argv[1],
23 NOTMUCH_DATABASE_MODE_READ_ONLY,
24 argv[2], NULL, &db, NULL);
26 printf("db != NULL: %d\n", db != NULL);
28 notmuch_database_destroy(db);
37 test_expect_equal_file EXPECTED OUTPUT