From: shaneh Date: Thu, 25 Feb 2010 18:07:59 +0000 (+0000) Subject: Fixed numbering of a few tests; minor tweaks on others. X-Git-Tag: version-3.7.2~578 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88ba618ee73be0d1bf87f16c6ca17801550ecf01;p=thirdparty%2Fsqlite.git Fixed numbering of a few tests; minor tweaks on others. Added a couple new tests to stress previous simplifications. FossilOrigin-Name: 9b18dfd19e825b09c1d246c826e179b9892308df --- diff --git a/manifest b/manifest index 465b8108ef..066b3980cc 100644 --- a/manifest +++ b/manifest @@ -1,8 +1,5 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -C Minor\ssimplifications\sto\sthe\scompile-time\soption\sreporting\sfunctions\sand\npragmas\sto\sfacilitate\scoverage\stesting. -D 2010-02-25T15:28:42 +C Fixed\snumbering\sof\sa\sfew\stests;\sminor\stweaks\son\sothers.\s\s\nAdded\sa\scouple\snew\stests\sto\sstress\sprevious\ssimplifications. +D 2010-02-25T18:07:59 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0 F Makefile.in 4f2f967b7e58a35bb74fb7ec8ae90e0f4ca7868b F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654 @@ -321,7 +318,7 @@ F test/crash8.test 5b32966fcb58fd616d24ce94303420351d076eb9 F test/crashtest1.c 09c1c7d728ccf4feb9e481671e29dda5669bbcc2 F test/createtab.test 199cf68f44e5d9e87a0b8afc7130fdeb4def3272 F test/cse.test 277350a26264495e86b1785f34d2d0c8600e021c -F test/ctime.test aa0953d27564dac33d6c3fd5903312788b7fa383 +F test/ctime.test 50e1fd7bc76a89014e27c73381e7b5ec75bb17cb F test/date.test 0b8473ed9ab6fd4283b4a01f035e1067762ba734 F test/default.test 6faf23ccb300114924353007795aa9a8ec0aa9dc F test/delete.test f7629d9eb245dfca170169cc5c7a735dec34aeb4 @@ -795,14 +792,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f -P 78351d289bba83e536b64666c566b7bfc57351da -R fc8b2f3b47f245eabb47345addf3c287 -U drh -Z 4e47927e3bcb66e5fb9f95fb6ecab24b ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.6 (GNU/Linux) - -iD8DBQFLhpctoxKgR168RlERAqODAJ9s1JUohWfuDCMn8r6UjUKPuWx+sgCfVoJZ -FiEbzo9If4ZwffR72z1peFY= -=7Yci ------END PGP SIGNATURE----- +P 633d874783a94f923ff8240f9153764033d37a89 +R b415f1e2575ca4e2284804631588393c +U shaneh +Z 6fde487eda25da0e582d84373048848c diff --git a/manifest.uuid b/manifest.uuid index 421eaf9518..97133aee30 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -633d874783a94f923ff8240f9153764033d37a89 \ No newline at end of file +9b18dfd19e825b09c1d246c826e179b9892308df \ No newline at end of file diff --git a/test/ctime.test b/test/ctime.test index 119100778f..e94da495e4 100644 --- a/test/ctime.test +++ b/test/ctime.test @@ -110,7 +110,7 @@ do_test ctime-1.4.5 { } } {0 1} -do_test ctime-1.4 { +do_test ctime-1.5 { set ans1 [ catchsql { PRAGMA compile_option('THREADSAFE=0'); } ] @@ -120,17 +120,18 @@ do_test ctime-1.4 { lsort [ list $ans1 $ans2 ] } {{0 0} {0 1}} -do_test ctime-1.5 { +do_test ctime-1.6 { execsql { PRAGMA compile_option('THREADSAFE='); } } {0} -do_test ctime-1.6 { + +do_test ctime-1.7.1 { execsql { PRAGMA compile_option('SQLITE_OMIT_COMPILEOPTION_DIAGS'); } } {0} -do_test ctime-1.7 { +do_test ctime-1.7.2 { execsql { PRAGMA compile_option('OMIT_COMPILEOPTION_DIAGS'); } @@ -169,6 +170,21 @@ do_test ctime-2.1.6 { SELECT sqlite_compile_option_used('THREADSAFE', 0); } } {1 {wrong number of arguments to function sqlite_compile_option_used()}} +do_test ctime-2.1.7 { + catchsql { + SELECT sqlite_compile_option_used(0); + } +} {0 0} +do_test ctime-2.1.8 { + catchsql { + SELECT sqlite_compile_option_used('0'); + } +} {0 0} +do_test ctime-2.1.9 { + catchsql { + SELECT sqlite_compile_option_used(1.0); + } +} {0 0} do_test ctime-2.2.1 { catchsql { @@ -192,10 +208,10 @@ do_test ctime-2.3 { # This assumes there is at least 1 compile time option # (see SQLITE_THREADSAFE above). do_test ctime-2.4 { - set res [ catchsql { + set ans [ catchsql { SELECT sqlite_compile_option_get(0); } ] - list [lindex $res 0] + list [lindex $ans 0] } {0} # Get the list of defines using the pragma,