]> git.notmuchmail.org Git - notmuch/blobdiff - test/T520-show.sh
test: treat undefined feature variables as 0
[notmuch] / test / T520-show.sh
index c7b73a6d4a2bc2a9f892732f49052e1d97052183..6bcf109c76160c32fa0380fc6d2b68deb4d37474 100755 (executable)
@@ -35,7 +35,7 @@ notmuch show --entire-thread=true --sort=oldest-first $QUERY > OUTPUT
 test_expect_equal_file EXPECTED OUTPUT
 
 
-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'