X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT560-lib-error.sh;h=b1e77aa0ee3878506d5136050376ed2d2c6f4a75;hb=a57b3d43033103a1efda78ab2e5f273c217a1834;hp=9f5f7aefeea2e2c6fd44abc28c5e7ca29031840c;hpb=b59ad1a9cc6ea03764b1cd3d038920581ac5a9c4;p=notmuch diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index 9f5f7aef..b1e77aa0 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -36,7 +36,6 @@ EOF test_expect_equal_file EXPECTED OUTPUT test_begin_subtest "Open relative path" -test_subtest_known_broken test_C <<'EOF' #include #include @@ -55,7 +54,6 @@ EOF test_expect_equal_file EXPECTED OUTPUT test_begin_subtest "Create database in relative path" -test_subtest_known_broken test_C <<'EOF' #include #include @@ -108,21 +106,21 @@ Error: Cannot create a database for a NULL path. EOF test_expect_equal_file EXPECTED OUTPUT -test_begin_subtest "Create database in non-existant directory" -test_C <<'EOF' +test_begin_subtest "Create database in nonexistent directory" +test_C ${PWD}/nonexistent/foo<<'EOF' #include #include int main (int argc, char** argv) { notmuch_database_t *db; notmuch_status_t stat; - stat = notmuch_database_create ("./nonexistent/foo", &db); + stat = notmuch_database_create (argv[1], &db); } EOF cat <<'EOF' >EXPECTED == stdout == == stderr == -Error: Cannot create database at ./nonexistent/foo: No such file or directory. +Error: Cannot create database at CWD/nonexistent/foo: No such file or directory. EOF test_expect_equal_file EXPECTED OUTPUT