[tests] add realpath() test

This commit is contained in:
Timothy Stack 2021-01-31 15:01:11 -08:00
parent 5c02766485
commit caa5cc9003
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@ Row 0:
Column readlink('sql_fs_readlink_test.lnk'): sql_fs_readlink_test
EOF
run_test ./drive_sql "select realpath('non-existent-path')"
check_error_output "realpath() with invalid path works?" <<EOF
error: sqlite3_exec failed -- Could not get real path for non-existent-path -- No such file or directory
EOF
ln -sf drive_sql sql_fs_realpath_test.lnk
run_test ./drive_sql "select realpath('sql_fs_realpath_test.lnk')"
rm sql_fs_realpath_test.lnk