From 292b3a6fc5ae3a9fcc7fb972c8db539157a3c074 Mon Sep 17 00:00:00 2001 From: "D. Richard Hipp" Date: Tue, 17 Oct 2017 13:44:46 +0000 Subject: [PATCH] Fix the ".check" command of the command-line shell to return 1 (error) rather than 2 (exit) on a test failure. --- src/shell.c.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell.c.in b/src/shell.c.in index b62c055076..8f5ed59e93 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -4248,7 +4248,7 @@ static int do_meta_command(char *zLine, ShellState *p){ utf8_printf(stderr, "testcase-%s FAILED\n Expected: [%s]\n Got: [%s]\n", p->zTestcase, azArg[1], zRes); - rc = 2; + rc = 1; }else{ utf8_printf(stdout, "testcase-%s ok\n", p->zTestcase); p->nCheck++; -- 2.11.4.GIT