]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add more tests for the profile output of the Tcl trace_v2 method.
authormistachkin <mistachkin@noemail.net>
Sat, 10 Mar 2018 20:45:44 +0000 (20:45 +0000)
committermistachkin <mistachkin@noemail.net>
Sat, 10 Mar 2018 20:45:44 +0000 (20:45 +0000)
FossilOrigin-Name: 61eeb48f03f8a9a32330a5cae4387bb4e5618078cf669a5831910f99126900ec

manifest
manifest.uuid
test/trace3.test

index 2127b2a120e2be114163670b1283320c13003e74..154b7755d4ac89d145ac9a620bee6ec18099b4b7 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sthe\ssecond\scallback\sargument\sto\sthe\s"profile"\sresponse\sof\sthe\n"trace_v2"\smethod\sin\sthe\sTCL\sinterface\sso\sthat\sit\sshows\sthe\sactual\nnumber\sof\snanoseconds\sfor\sthe\scommand,\snot\sthe\saddress\sof\sthe\svariable\ncontaining\sthe\snumber\sof\snanoseconds.
-D 2018-03-10T20:25:08.263
+C Add\smore\stests\sfor\sthe\sprofile\soutput\sof\sthe\sTcl\strace_v2\smethod.
+D 2018-03-10T20:45:44.303
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
 F Makefile.in 7016fc56c6b9bfe5daac4f34be8be38d8c0b5fab79ccbfb764d3b23bf1c6fff3
@@ -1464,7 +1464,7 @@ F test/tokenize.test ce430a7aed48fc98301611429595883fdfcab5d7
 F test/tpch01.test 04adbf8d8300fa60a222f28d901abd76e7be6dd4
 F test/trace.test a659a9862957f4789e37a92b3bf6d2caf5c86b02cdeefc41e850ae53acf6992a
 F test/trace2.test f5cb67ad3bc09e0c58e8cca78dfd0b5639259983
-F test/trace3.test 56ab944fddacf628b118cc298503fc45c2e50ab0
+F test/trace3.test b41076f536876b6edf661c0cf8f9216771316efd0fe78905576cc23ce269e7f2
 F test/trans.test 6e1b4c6a42dba31bd65f8fa5e61a2708e08ddde6
 F test/trans2.test 62bd045bfc7a1c14c5ba83ba64d21ade31583f76
 F test/trans3.test 91a100e5412b488e22a655fe423a14c26403ab94
@@ -1712,7 +1712,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 8ad35d483e4293d5571eeacc20fd26cdc4064fbee7b63d974879d507a0ee5792
-R 279cd3192a7c1f331d05cc752480bd6c
-U drh
-Z 18b5539ad20c19ffcad336c52433ff73
+P 8f9a12518642e5be9760956ff345fe54ed5bd3cab55328e88312278d3d78bc76
+R 48d81d5066bd833c124296a55bfd94e5
+U mistachkin
+Z 000a9a6266d4feb17fadafdd3f3d2026
index 435e071afc21e80923a3f72f1731cdca2f95f2bb..ea63cde5bf1c9d0965300ca21fe32847817c6e97 100644 (file)
@@ -1 +1 @@
-8f9a12518642e5be9760956ff345fe54ed5bd3cab55328e88312278d3d78bc76
\ No newline at end of file
+61eeb48f03f8a9a32330a5cae4387bb4e5618078cf669a5831910f99126900ec
\ No newline at end of file
index 271009a3fc63af12ee576957e352ff5a268298a1..a2f7c3f3a1064c6e8bdc25113ce9a92d5d202903 100644 (file)
@@ -121,6 +121,27 @@ do_test trace3-4.2 {
   set ::stmtlist(record)
 } {/^\{-?\d+ -?\d+\}$/}
 
+do_test trace3-4.3 {
+  set ::stmtlist(record) {}
+  db trace_v2 trace_v2_record profile
+  execsql {
+    SELECT a, b FROM t1 ORDER BY a;
+  }
+  set stmt [lindex [lindex $::stmtlist(record) 0] 0]
+  set ns [lindex [lindex $::stmtlist(record) 0] 1]
+  list $stmt [expr {$ns >= 0 && $ns <= 1000000}]; # less than 0.001 second
+} {/^-?\d+ 1$/}
+do_test trace3-4.4 {
+  set ::stmtlist(record) {}
+  db trace_v2 trace_v2_record 2
+  execsql {
+    SELECT a, b FROM t1 ORDER BY a;
+  }
+  set stmt [lindex [lindex $::stmtlist(record) 0] 0]
+  set ns [lindex [lindex $::stmtlist(record) 0] 1]
+  list $stmt [expr {$ns >= 0 && $ns <= 1000000}]; # less than 0.001 second
+} {/^-?\d+ 1$/}
+
 do_test trace3-5.1 {
   set ::stmtlist(record) {}
   db trace_v2 trace_v2_record row