test_begin_subtest "notmuch search --format=json for non-existent message prints proper empty json"
notmuch search --format=json "no-message-matches-this" > OUTPUT
-cat <<EOF >EXPECTED
-[]
-EOF
+echo "[]" >EXPECTED
test_expect_equal_file OUTPUT EXPECTED
test_done