[PATCH 1/2] test: be consistent about spelling `nonexistent'

Tomi Ollila tomi.ollila at iki.fi
Wed Apr 8 08:04:18 PDT 2015


On Wed, Apr 08 2015, David Bremner <david at tethera.net> wrote:

> Apparently most of the misspellings are my fault.

Series LGTM. Tests pass.

Tomi


> ---
>  test/T360-symbol-hiding.sh | 2 +-
>  test/T560-lib-error.sh     | 2 +-
>  test/symbol-test.cc        | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/test/T360-symbol-hiding.sh b/test/T360-symbol-hiding.sh
> index 8fc4bdf..d2b5d1f 100755
> --- a/test/T360-symbol-hiding.sh
> +++ b/test/T360-symbol-hiding.sh
> @@ -16,7 +16,7 @@ run_test(){
>  }
>  
>  output="A Xapian exception occurred opening database: Couldn't stat 'fakedb/.notmuch/xapian'
> -caught No chert database found at path \`./nonexistant'"
> +caught No chert database found at path \`./nonexistent'"
>  
>  mkdir -p fakedb/.notmuch
>  
> diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh
> index 828a44b..6947aa8 100755
> --- a/test/T560-lib-error.sh
> +++ b/test/T560-lib-error.sh
> @@ -202,7 +202,7 @@ test_begin_subtest "Xapian exception finding message"
>  cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
>     {
>         notmuch_message_t *message = NULL;
> -       stat = notmuch_database_find_message (db, "id:nonexistant", &message);
> +       stat = notmuch_database_find_message (db, "id:nonexistent", &message);
>     }
>  EOF
>  sed 's/^\(A Xapian exception [^:]*\):.*$/\1/' < OUTPUT > OUTPUT.clean
> diff --git a/test/symbol-test.cc b/test/symbol-test.cc
> index d979f83..f17ddc8 100644
> --- a/test/symbol-test.cc
> +++ b/test/symbol-test.cc
> @@ -15,7 +15,7 @@ int main() {
>        }
>  
>    try {
> -    (void) new Xapian::WritableDatabase("./nonexistant", Xapian::DB_OPEN);
> +    (void) new Xapian::WritableDatabase("./nonexistent", Xapian::DB_OPEN);
>    } catch (const Xapian::Error &error) {
>      printf("caught %s\n", error.get_msg().c_str());
>      return 0;
> -- 
> 2.1.4


More information about the notmuch mailing list