Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: third_party/sqlite/src/test/tkt3793.test

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/tkt3773.test ('k') | third_party/sqlite/src/test/tkt3838.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/tkt3793.test
diff --git a/third_party/sqlite/src/test/tkt3793.test b/third_party/sqlite/src/test/tkt3793.test
index 2b5f2bab399733eb18eff2707fa5cb1aa6787708..074aab2df0a7a46fa66a81a922fce261fc8f4795 100644
--- a/third_party/sqlite/src/test/tkt3793.test
+++ b/third_party/sqlite/src/test/tkt3793.test
@@ -100,16 +100,18 @@ set x 0
# Note: Before the bug was fixed, if [db2] was opened with the "-fullmutex 1"
# option, then this test case would cause an assert() to fail.
#
-set ::busyconnection db1
-db1 eval {SELECT * FROM t2 ORDER BY a LIMIT 20} {
- do_test tkt3793-2.[incr x] { set ::busyconnection } db1
- set ::busyconnection db2
-
- db2 eval { SELECT count(*) FROM t2 }
- do_test tkt3793-2.[incr x] { set ::busyconnection } db2
+ifcapable threadsafe {
set ::busyconnection db1
+ db1 eval {SELECT * FROM t2 ORDER BY a LIMIT 20} {
+ do_test tkt3793-2.[incr x] { set ::busyconnection } db1
+ set ::busyconnection db2
+
+ db2 eval { SELECT count(*) FROM t2 }
+ do_test tkt3793-2.[incr x] { set ::busyconnection } db2
+ set ::busyconnection db1
+ }
}
-
+
do_test tkt3793-3 {
db1 close
db2 close
« no previous file with comments | « third_party/sqlite/src/test/tkt3773.test ('k') | third_party/sqlite/src/test/tkt3838.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698