Test case for the ".log" command to the command-line shell.

FossilOrigin-Name: 7d0ff26a95cb1e9fcace4641245dda787f3522b4
This commit is contained in:
drh
2011-04-25 18:20:04 +00:00
parent 3ca84ef623
commit 53a9d15826
3 changed files with 12 additions and 7 deletions
+5
View File
@@ -711,4 +711,9 @@ do_test shell1-3.27.4 {
catchcmd "test.db" ".timer OFF BAD"
} {1 {Error: unknown command or invalid arguments: "timer". Enter ".help" for help}}
do_test shell1-3-28.1 {
catchcmd test.db \
".log stdout\nSELECT coalesce(sqlite_log(123,'hello'),'456');"
} "0 {(123) hello\n456}"
puts "CLI tests completed successfully"