]> git.cworth.org Git - notmuch/blobdiff - test/T150-tagging.sh
test: treat undefined feature variables as 0
[notmuch] / test / T150-tagging.sh
index ac3f25399dc0e9024c8606c70805703355392ec6..273c0af35927e092c37b7a9c47cacfc9b8aaac89 100755 (executable)
@@ -328,7 +328,7 @@ test_expect_equal "$output" "A Xapian exception occurred opening database"
 
 add_email_corpus
 
-if [ $NOTMUCH_HAVE_SFSEXP -eq 1 ]; then
+if [ "${NOTMUCH_HAVE_SFSEXP-0}" = "1" ]; then
 
     test_query_syntax '(and "wonderful" "wizard")' 'wonderful and wizard'
     test_query_syntax '(or "php" "wizard")' 'php or wizard'