/ Check-in [e2af0cc6]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the ".check" command of the command-line shell to return 1 (error) rather than 2 (exit) on a test failure.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e2af0cc6ef5fafc785b8b73f51995901f50822972dcfb632494e22402596186d
User & Date: drh 2017-10-17 13:44:46
Context
2017-10-18
14:29
Avoid using snprintf as a member variable of a struct in sqlite3ext.h. This causes problems on OSX. Closed-Leaf check-in: b066d5a6 user: dan tags: sqlite3ext-fix
2017-10-17
18:33
The source code files generated for the 'sqlite3-all.c' target should not have Windows line-endings. check-in: 6a08c434 user: mistachkin tags: trunk
13:44
Fix the ".check" command of the command-line shell to return 1 (error) rather than 2 (exit) on a test failure. check-in: e2af0cc6 user: drh tags: trunk
2017-10-16
11:50
Improved comments, including a typo fix, on the whereLoopCheaperProperSubset() function. check-in: 700a3c69 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.in.

  4244   4244       }else if( (zRes = readFile("testcase-out.txt", 0))==0 ){
  4245   4245         raw_printf(stderr, "Error: cannot read 'testcase-out.txt'\n");
  4246   4246         rc = 2;
  4247   4247       }else if( testcase_glob(azArg[1],zRes)==0 ){
  4248   4248         utf8_printf(stderr,
  4249   4249                    "testcase-%s FAILED\n Expected: [%s]\n      Got: [%s]\n",
  4250   4250                    p->zTestcase, azArg[1], zRes);
  4251         -      rc = 2;
         4251  +      rc = 1;
  4252   4252       }else{
  4253   4253         utf8_printf(stdout, "testcase-%s ok\n", p->zTestcase);
  4254   4254         p->nCheck++;
  4255   4255       }
  4256   4256       sqlite3_free(zRes);
  4257   4257     }else
  4258   4258