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

Side by Side Diff: third_party/sqlite/src/test/mallocG.test

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. 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 unified diff | Download patch
OLDNEW
1 # 2007 Aug 29 1 # 2007 Aug 29
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } -sqlbody { 46 } -sqlbody {
47 SELECT * FROM t1 47 SELECT * FROM t1
48 WHERE x BETWEEN 'a' AND 'z' 48 WHERE x BETWEEN 'a' AND 'z'
49 AND x BETWEEN 'c' AND 'w' 49 AND x BETWEEN 'c' AND 'w'
50 AND x BETWEEN 'e' AND 'u' 50 AND x BETWEEN 'e' AND 'u'
51 AND x BETWEEN 'g' AND 'r' 51 AND x BETWEEN 'g' AND 'r'
52 AND x BETWEEN 'i' AND 'q' 52 AND x BETWEEN 'i' AND 'q'
53 AND x BETWEEN 'i' AND 'm' 53 AND x BETWEEN 'i' AND 'm'
54 } 54 }
55 55
56 ifcapable !utf16 {
57 finish_test
58 return
59 }
60
56 proc utf16 {utf8} { 61 proc utf16 {utf8} {
57 set utf16 [encoding convertto unicode $utf8] 62 set utf16 [encoding convertto unicode $utf8]
58 append utf16 "\x00\x00" 63 append utf16 "\x00\x00"
59 return $utf16 64 return $utf16
60 } 65 }
61 66
62 do_malloc_test mallocG-4 -tclbody { 67 do_malloc_test mallocG-4 -tclbody {
63 set rc [sqlite3_complete16 [utf16 "SELECT * FROM t1;"]] 68 set rc [sqlite3_complete16 [utf16 "SELECT * FROM t1;"]]
64 if {$rc==1} {set rc 0} {error "out of memory"} 69 if {$rc==1} {set rc 0} {error "out of memory"}
65 set rc 70 set rc
66 } 71 }
67 72
68 finish_test 73 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698