[tests] add realpath() test

pull/835/head
Timothy Stack 3 years ago
parent 5c02766485
commit caa5cc9003

@ -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

Loading…
Cancel
Save