diff options
author | Jan Mercl <0xjnml@gmail.com> | 2020-07-31 14:18:38 +0200 |
---|---|---|
committer | Jan Mercl <0xjnml@gmail.com> | 2020-07-31 14:18:38 +0200 |
commit | 1349149922b282e74a77c7d51c316d883fba5b89 (patch) | |
tree | 6aef7056dbfe750984954ba25cbb97feb251d4cf /internal/mptest | |
parent | 3337c85b5e539021d90ccec9891d73b14c64671b (diff) |
use crt v3.24.9
Diffstat (limited to 'internal/mptest')
-rw-r--r-- | internal/mptest/main_linux_amd64.go | 281 |
1 files changed, 136 insertions, 145 deletions
diff --git a/internal/mptest/main_linux_amd64.go b/internal/mptest/main_linux_amd64.go index 9a2f3c1..c281bb7 100644 --- a/internal/mptest/main_linux_amd64.go +++ b/internal/mptest/main_linux_amd64.go @@ -1,4 +1,4 @@ -// Code generated by 'ccgo -o internal/mptest/main_linux_amd64.go testdata/sqlite-src-3320300/mptest/mptest.c -Itestdata/sqlite-amalgamation-3320300 -l modernc.org/sqlite/lib -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_PAGE_SIZE=1024 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_DQS=0 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_MUTEX_NOOP -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_UTF16 -DSQLITE_TEST -DSQLITE_THREADSAFE=2 -ccgo-long-double-is-double', DO NOT EDIT. +// Code generated by 'ccgo -o internal/mptest/main_linux_amd64.go testdata/sqlite-src-3320300/mptest/mptest.c -Itestdata/sqlite-amalgamation-3320300 -l modernc.org/sqlite/lib -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DNDEBUG -DSQLITE_CORE -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_PAGE_SIZE=1024 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_DQS=0 -DSQLITE_ENABLE_BYTECODE_VTAB -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_ENABLE_DESERIALIZE -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_HAVE_ZLIB=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_MAX_MMAP_SIZE=8589934592 -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_MUTEX_NOOP -DSQLITE_NO_SYNC=1 -DSQLITE_OS_UNIX=1 -DSQLITE_SERIES_CONSTRAINT_VERIFY=1 -DSQLITE_SERVER=1 -DSQLITE_TEMP_STORE=1 -DSQLITE_TEST -DSQLITE_THREADSAFE=1 -ccgo-long-double-is-double', DO NOT EDIT. package main @@ -3685,9 +3685,7 @@ func evalSql(tls *crt.TLS, p uintptr, zFormat uintptr, va uintptr) int32 { /* mp ap = va zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap) _ = ap - if !(g.iTimeout > 0) { - crt.X__assert_fail(tls, ts+151 /* "g.iTimeout>0" */, ts+164 /* "testdata/sqlite-..." */, uint32(494), uintptr(unsafe.Pointer(&__func__))) - } + rc = sqlite3.Xsqlite3_exec(tls, g.db, zSql, *(*uintptr)(unsafe.Pointer(&struct { f func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32 }{evalCallback})), p, bp+8 /* &zErrMsg */) @@ -3695,7 +3693,7 @@ func evalSql(tls *crt.TLS, p uintptr, zFormat uintptr, va uintptr) int32 { /* mp if rc != 0 { // var zErr [30]int8 at bp+16, 30 - sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+16 /* &zErr[0] */, ts+208 /* "error(%d)" */, crt.VaList(bp, rc)) + sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+16 /* &zErr[0] */, ts+151 /* "error(%d)" */, crt.VaList(bp, rc)) stringAppendTerm(tls, p, bp+16 /* &zErr[0] */) if *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrMsg */)) != 0 { stringAppendTerm(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrMsg */))) @@ -3705,8 +3703,6 @@ func evalSql(tls *crt.TLS, p uintptr, zFormat uintptr, va uintptr) int32 { /* mp return rc } -var __func__ = *(*[8]int8)(unsafe.Pointer(ts + 218 /* "evalSql" */)) /* mptest.c:486:56 */ - // Auxiliary SQL function to recursively evaluate SQL. func evalFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* mptest.c:512:13: */ bp := tls.Alloc(24) @@ -3749,57 +3745,57 @@ func startScript(tls *crt.TLS, iClient int32, pzScript uintptr, pTaskId uintptr, *(*uintptr)(unsafe.Pointer(pzScript)) = uintptr(0) g.iTimeout = 0 for 1 != 0 { - rc = trySql(tls, ts+226 /* "BEGIN IMMEDIATE" */, 0) + rc = trySql(tls, ts+161 /* "BEGIN IMMEDIATE" */, 0) if rc == 5 { sqlite3.Xsqlite3_sleep(tls, 10) totalTime = totalTime + (10) continue } if rc != 0 { - fatalError(tls, ts+242 /* "in startScript: ..." */, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, g.db))) + fatalError(tls, ts+177 /* "in startScript: ..." */, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, g.db))) } if (g.nError != 0) || (g.nTest != 0) { - runSql(tls, ts+261, /* "UPDATE counters ..." */ + runSql(tls, ts+196, /* "UPDATE counters ..." */ crt.VaList(bp+8, g.nError, g.nTest)) g.nError = 0 g.nTest = 0 } - pStmt = prepareSql(tls, ts+314 /* "SELECT 1 FROM cl..." */, crt.VaList(bp+24, iClient)) + pStmt = prepareSql(tls, ts+249 /* "SELECT 1 FROM cl..." */, crt.VaList(bp+24, iClient)) rc = sqlite3.Xsqlite3_step(tls, pStmt) sqlite3.Xsqlite3_finalize(tls, pStmt) if rc == 100 { - runSql(tls, ts+360 /* "DELETE FROM clie..." */, crt.VaList(bp+32, iClient)) + runSql(tls, ts+295 /* "DELETE FROM clie..." */, crt.VaList(bp+32, iClient)) g.iTimeout = 10000 - runSql(tls, ts+391 /* "COMMIT TRANSACTI..." */, 0) + runSql(tls, ts+326 /* "COMMIT TRANSACTI..." */, 0) return 101 } pStmt = prepareSql(tls, - ts+411 /* "SELECT script, i..." */, crt.VaList(bp+40, iClient)) + ts+346 /* "SELECT script, i..." */, crt.VaList(bp+40, iClient)) rc = sqlite3.Xsqlite3_step(tls, pStmt) if rc == 100 { var n int32 = sqlite3.Xsqlite3_column_bytes(tls, pStmt, 0) *(*uintptr)(unsafe.Pointer(pzScript)) = sqlite3.Xsqlite3_malloc(tls, (n + 1)) crt.Xstrcpy(tls, *(*uintptr)(unsafe.Pointer(pzScript)), sqlite3.Xsqlite3_column_text(tls, pStmt, 0)) *(*int32)(unsafe.Pointer(pTaskId)) = crt.AssignInt32(&taskId, sqlite3.Xsqlite3_column_int(tls, pStmt, 1)) - *(*uintptr)(unsafe.Pointer(pzTaskName)) = sqlite3.Xsqlite3_mprintf(tls, ts+503 /* "%s" */, crt.VaList(bp+48, sqlite3.Xsqlite3_column_text(tls, pStmt, 2))) + *(*uintptr)(unsafe.Pointer(pzTaskName)) = sqlite3.Xsqlite3_mprintf(tls, ts+438 /* "%s" */, crt.VaList(bp+48, sqlite3.Xsqlite3_column_text(tls, pStmt, 2))) sqlite3.Xsqlite3_finalize(tls, pStmt) runSql(tls, - ts+506 /* "UPDATE task SE..." */, crt.VaList(bp+56, taskId)) + ts+441 /* "UPDATE task SE..." */, crt.VaList(bp+56, taskId)) g.iTimeout = 10000 - runSql(tls, ts+391 /* "COMMIT TRANSACTI..." */, 0) + runSql(tls, ts+326 /* "COMMIT TRANSACTI..." */, 0) return 0 } sqlite3.Xsqlite3_finalize(tls, pStmt) if rc == 101 { if totalTime > 30000 { - errorMessage(tls, ts+589 /* "Waited over 30 s..." */, 0) - runSql(tls, ts+638 /* "DELETE FROM clie..." */, crt.VaList(bp+64, iClient)) + errorMessage(tls, ts+524 /* "Waited over 30 s..." */, 0) + runSql(tls, ts+573 /* "DELETE FROM clie..." */, crt.VaList(bp+64, iClient)) sqlite3.Xsqlite3_close(tls, g.db) crt.Xexit(tls, 1) } - for trySql(tls, ts+678 /* "COMMIT" */, 0) == 5 { + for trySql(tls, ts+613 /* "COMMIT" */, 0) == 5 { sqlite3.Xsqlite3_sleep(tls, 10) totalTime = totalTime + (10) } @@ -3807,7 +3803,7 @@ func startScript(tls *crt.TLS, iClient int32, pzScript uintptr, pTaskId uintptr, totalTime = totalTime + (100) continue } - fatalError(tls, ts+503 /* "%s" */, crt.VaList(bp+72, sqlite3.Xsqlite3_errmsg(tls, g.db))) + fatalError(tls, ts+438 /* "%s" */, crt.VaList(bp+72, sqlite3.Xsqlite3_errmsg(tls, g.db))) } g.iTimeout = 10000 return int32(0) @@ -3821,9 +3817,9 @@ func finishScript(tls *crt.TLS, iClient int32, taskId int32, bShutdown int32) in runSql(tls, - ts+685 /* "UPDATE task SE..." */, crt.VaList(bp, taskId)) + ts+620 /* "UPDATE task SE..." */, crt.VaList(bp, taskId)) if bShutdown != 0 { - runSql(tls, ts+360 /* "DELETE FROM clie..." */, crt.VaList(bp+8, iClient)) + runSql(tls, ts+295 /* "DELETE FROM clie..." */, crt.VaList(bp+8, iClient)) } return 0 } @@ -3835,28 +3831,28 @@ func startClient(tls *crt.TLS, iClient int32) { /* mptest.c:638:13: */ bp := tls.Alloc(96) defer tls.Free(96) - runSql(tls, ts+766 /* "INSERT OR IGNORE..." */, crt.VaList(bp, iClient)) + runSql(tls, ts+701 /* "INSERT OR IGNORE..." */, crt.VaList(bp, iClient)) if sqlite3.Xsqlite3_changes(tls, g.db) != 0 { var zSys uintptr var rc int32 - zSys = sqlite3.Xsqlite3_mprintf(tls, ts+808, /* "%s \"%s\" --client..." */ + zSys = sqlite3.Xsqlite3_mprintf(tls, ts+743, /* "%s \"%s\" --client..." */ crt.VaList(bp+8, g.argv0, g.zDbFile, iClient, g.iTrace)) if g.bSqlTrace != 0 { - zSys = sqlite3.Xsqlite3_mprintf(tls, ts+839 /* "%z --sqltrace" */, crt.VaList(bp+40, zSys)) + zSys = sqlite3.Xsqlite3_mprintf(tls, ts+774 /* "%z --sqltrace" */, crt.VaList(bp+40, zSys)) } if g.bSync != 0 { - zSys = sqlite3.Xsqlite3_mprintf(tls, ts+853 /* "%z --sync" */, crt.VaList(bp+48, zSys)) + zSys = sqlite3.Xsqlite3_mprintf(tls, ts+788 /* "%z --sync" */, crt.VaList(bp+48, zSys)) } if g.zVfs != 0 { - zSys = sqlite3.Xsqlite3_mprintf(tls, ts+863 /* "%z --vfs \"%s\"" */, crt.VaList(bp+56, zSys, g.zVfs)) + zSys = sqlite3.Xsqlite3_mprintf(tls, ts+798 /* "%z --vfs \"%s\"" */, crt.VaList(bp+56, zSys, g.zVfs)) } if g.iTrace >= 2 { - logMessage(tls, ts+877 /* "system('%q')" */, crt.VaList(bp+72, zSys)) + logMessage(tls, ts+812 /* "system('%q')" */, crt.VaList(bp+72, zSys)) } - zSys = sqlite3.Xsqlite3_mprintf(tls, ts+890 /* "%z &" */, crt.VaList(bp+80, zSys)) + zSys = sqlite3.Xsqlite3_mprintf(tls, ts+825 /* "%z &" */, crt.VaList(bp+80, zSys)) rc = crt.Xsystem(tls, zSys) if rc != 0 { - errorMessage(tls, ts+895 /* "system() fails w..." */, crt.VaList(bp+88, rc)) + errorMessage(tls, ts+830 /* "system() fails w..." */, crt.VaList(bp+88, rc)) } sqlite3.Xsqlite3_free(tls, zSys) } @@ -3867,11 +3863,11 @@ func readFile(tls *crt.TLS, zFilename uintptr) uintptr { /* mptest.c:684:13: */ bp := tls.Alloc(8) defer tls.Free(8) - var in uintptr = crt.Xfopen(tls, zFilename, ts+929 /* "rb" */) + var in uintptr = crt.Xfopen(tls, zFilename, ts+864 /* "rb" */) var sz int64 var z uintptr if in == uintptr(0) { - fatalError(tls, ts+932 /* "cannot open \"%s\"..." */, crt.VaList(bp, zFilename)) + fatalError(tls, ts+867 /* "cannot open \"%s\"..." */, crt.VaList(bp, zFilename)) } crt.Xfseek(tls, in, int64(0), 2) sz = crt.Xftell(tls, in) @@ -3956,7 +3952,7 @@ func extractToken(tls *crt.TLS, zIn uintptr, nIn int32, zOut uintptr, nOut int32 // Find the number of characters up to the start of the next "--end" token. func findEnd(tls *crt.TLS, z uintptr, pnLine uintptr) int32 { /* mptest.c:763:12: */ var n int32 = 0 - for (*(*int8)(unsafe.Pointer(z + uintptr(n))) != 0) && ((crt.Xstrncmp(tls, (z+uintptr(n)), ts+961 /* "--end" */, uint64(5)) != 0) || !((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 5)))))))*2))) & int32(uint16(8192))) != 0)) { + for (*(*int8)(unsafe.Pointer(z + uintptr(n))) != 0) && ((crt.Xstrncmp(tls, (z+uintptr(n)), ts+896 /* "--end" */, uint64(5)) != 0) || !((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 5)))))))*2))) & int32(uint16(8192))) != 0)) { n = n + (tokenLength(tls, (z + uintptr(n)), pnLine)) } return n @@ -3969,11 +3965,11 @@ func findEndif(tls *crt.TLS, z uintptr, stopAtElse int32, pnLine uintptr) int32 var n int32 = 0 for *(*int8)(unsafe.Pointer(z + uintptr(n))) != 0 { var len int32 = tokenLength(tls, (z + uintptr(n)), pnLine) - if ((crt.Xstrncmp(tls, (z+uintptr(n)), ts+967 /* "--endif" */, uint64(7)) == 0) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 7)))))))*2))) & int32(uint16(8192))) != 0)) || - (((stopAtElse != 0) && (crt.Xstrncmp(tls, (z+uintptr(n)), ts+975 /* "--else" */, uint64(6)) == 0)) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 6)))))))*2))) & int32(uint16(8192))) != 0)) { + if ((crt.Xstrncmp(tls, (z+uintptr(n)), ts+902 /* "--endif" */, uint64(7)) == 0) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 7)))))))*2))) & int32(uint16(8192))) != 0)) || + (((stopAtElse != 0) && (crt.Xstrncmp(tls, (z+uintptr(n)), ts+910 /* "--else" */, uint64(6)) == 0)) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 6)))))))*2))) & int32(uint16(8192))) != 0)) { return (n + len) } - if (crt.Xstrncmp(tls, (z+uintptr(n)), ts+982 /* "--if" */, uint64(4)) == 0) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 4)))))))*2))) & int32(uint16(8192))) != 0) { + if (crt.Xstrncmp(tls, (z+uintptr(n)), ts+917 /* "--if" */, uint64(4)) == 0) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 4)))))))*2))) & int32(uint16(8192))) != 0) { var skip int32 = findEndif(tls, ((z + uintptr(n)) + uintptr(len)), 0, pnLine) n = n + (skip + len) } else { @@ -3993,12 +3989,12 @@ func waitForClient(tls *crt.TLS, iClient int32, iTimeout int32, zErrPrefix uintp if iClient > 0 { pStmt = prepareSql(tls, - ts+987, /* "SELECT 1 FROM ta..." */ + ts+922, /* "SELECT 1 FROM ta..." */ crt.VaList(bp, iClient)) } else { pStmt = prepareSql(tls, - ts+1083 /* "SELECT 1 FROM ta..." */, 0) + ts+1018 /* "SELECT 1 FROM ta..." */, 0) } g.iTimeout = 0 for (((crt.AssignInt32(&rc, sqlite3.Xsqlite3_step(tls, pStmt))) == 5) || (rc == 100)) && @@ -4011,12 +4007,12 @@ func waitForClient(tls *crt.TLS, iClient int32, iTimeout int32, zErrPrefix uintp g.iTimeout = 10000 if rc != 101 { if zErrPrefix == uintptr(0) { - zErrPrefix = ts + 1164 /* "" */ + zErrPrefix = ts + 1099 /* "" */ } if iClient > 0 { - errorMessage(tls, ts+1165 /* "%stimeout waitin..." */, crt.VaList(bp+8, zErrPrefix, iClient)) + errorMessage(tls, ts+1100 /* "%stimeout waitin..." */, crt.VaList(bp+8, zErrPrefix, iClient)) } else { - errorMessage(tls, ts+1197 /* "%stimeout waitin..." */, crt.VaList(bp+24, zErrPrefix)) + errorMessage(tls, ts+1132 /* "%stimeout waitin..." */, crt.VaList(bp+24, zErrPrefix)) } } } @@ -4047,13 +4043,13 @@ func booleanValue(tls *crt.TLS, zArg uintptr) int32 { /* mptest.c:845:12: */ if (i > 0) && (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(i)))) == 0) { return crt.Xatoi(tls, zArg) } - if (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1231 /* "on" */) == 0) || (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1234 /* "yes" */) == 0) { + if (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1166 /* "on" */) == 0) || (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1169 /* "yes" */) == 0) { return 1 } - if (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1238 /* "off" */) == 0) || (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1242 /* "no" */) == 0) { + if (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1173 /* "off" */) == 0) || (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1177 /* "no" */) == 0) { return 0 } - errorMessage(tls, ts+1245 /* "unknown boolean:..." */, crt.VaList(bp, zArg)) + errorMessage(tls, ts+1180 /* "unknown boolean:..." */, crt.VaList(bp, zArg)) return 0 } @@ -4103,7 +4099,7 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // Run any prior SQL before processing the new --command if ii > iBegin { - var zSql uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+1267 /* "%.*s" */, crt.VaList(bp, (ii-iBegin), (zScript+uintptr(iBegin)))) + var zSql uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+1202 /* "%.*s" */, crt.VaList(bp, (ii-iBegin), (zScript+uintptr(iBegin)))) evalSql(tls, bp+360 /* &sResult */, zSql, 0) sqlite3.Xsqlite3_free(tls, zSql) iBegin = (ii + len) @@ -4111,7 +4107,7 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // Parse the --command if g.iTrace >= 2 { - logMessage(tls, ts+1267 /* "%.*s" */, crt.VaList(bp+16, len, (zScript+uintptr(ii)))) + logMessage(tls, ts+1202 /* "%.*s" */, crt.VaList(bp+16, len, (zScript+uintptr(ii)))) } n = extractToken(tls, ((zScript + uintptr(ii)) + uintptr(2)), (len - 2), bp+380 /* &zCmd[0] */, int32(unsafe.Sizeof([30]int8{}))) for nArg = 0; (n < (len - 2)) && (nArg < 2); nArg++ { @@ -4131,7 +4127,7 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // --sleep N // // Pause for N milliseconds - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1272 /* "sleep" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1207 /* "sleep" */) == 0 { sqlite3.Xsqlite3_sleep(tls, crt.Xatoi(tls, (bp+410 /* &azArg[0] */ +uintptr(0)*100))) } else @@ -4139,7 +4135,7 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // // Exit this process. If N>0 then exit without shutting down // SQLite. (In other words, simulate a crash.) - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1278 /* "exit" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1213 /* "exit" */) == 0 { var rc int32 = crt.Xatoi(tls, (bp + 410 /* &azArg[0] */ + uintptr(0)*100)) finishScript(tls, iClient, taskId, 1) if rc == 0 { @@ -4152,9 +4148,9 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // // Begin a new test case. Announce in the log that the test case // has begun. - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1283 /* "testcase" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1218 /* "testcase" */) == 0 { if g.iTrace == 1 { - logMessage(tls, ts+1267 /* "%.*s" */, crt.VaList(bp+32, (len-1), (zScript+uintptr(ii)))) + logMessage(tls, ts+1202 /* "%.*s" */, crt.VaList(bp+32, (len-1), (zScript+uintptr(ii)))) } stringReset(tls, bp+360 /* &sResult */) } else @@ -4163,28 +4159,28 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // // Mark the current task as having finished, even if it is not. // This can be used in conjunction with --exit to simulate a crash. - if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1292 /* "finish" */) == 0) && (iClient > 0) { + if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1227 /* "finish" */) == 0) && (iClient > 0) { finishScript(tls, iClient, taskId, 1) } else // --reset // // Reset accumulated results back to an empty string - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1299 /* "reset" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1234 /* "reset" */) == 0 { stringReset(tls, bp+360 /* &sResult */) } else // --match ANSWER... // // Check to see if output matches ANSWER. Report an error if not. - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1305 /* "match" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1240 /* "match" */) == 0 { var jj int32 var zAns uintptr = (zScript + uintptr(ii)) for jj = 7; (jj < (len - 1)) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zAns + uintptr(jj))))))*2))) & int32(uint16(8192))) != 0); jj++ { } zAns += uintptr(jj) if (((len - jj) - 1) != (*String)(unsafe.Pointer(bp+360 /* &sResult */)).n) || (crt.Xstrncmp(tls, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z, zAns, (uint64((len-jj)-1))) != 0) { - errorMessage(tls, ts+1311, /* "line %d of %s:\nE..." */ + errorMessage(tls, ts+1246, /* "line %d of %s:\nE..." */ crt.VaList(bp+48, prevLine, zFilename, ((len-jj)-1), zAns, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z)) } g.nTest++ @@ -4196,7 +4192,7 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // // Check to see if output does or does not match the glob pattern // ANSWER. - if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1356 /* "glob" */) == 0) || (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1361 /* "notglob" */) == 0) { + if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1291 /* "glob" */) == 0) || (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1296 /* "notglob" */) == 0) { var jj int32 var zAns uintptr = (zScript + uintptr(ii)) var zCopy uintptr @@ -4204,9 +4200,9 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile for jj = (9 - (3 * isGlob)); (jj < (len - 1)) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zAns + uintptr(jj))))))*2))) & int32(uint16(8192))) != 0); jj++ { } zAns += uintptr(jj) - zCopy = sqlite3.Xsqlite3_mprintf(tls, ts+1267 /* "%.*s" */, crt.VaList(bp+88, ((len-jj)-1), zAns)) + zCopy = sqlite3.Xsqlite3_mprintf(tls, ts+1202 /* "%.*s" */, crt.VaList(bp+88, ((len-jj)-1), zAns)) if ((crt.Bool32(sqlite3.Xsqlite3_strglob(tls, zCopy, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z) == 0)) ^ isGlob) != 0 { - errorMessage(tls, ts+1369, /* "line %d of %s:\nE..." */ + errorMessage(tls, ts+1304, /* "line %d of %s:\nE..." */ crt.VaList(bp+104, prevLine, zFilename, zCopy, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z)) } sqlite3.Xsqlite3_free(tls, zCopy) @@ -4217,14 +4213,14 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // --output // // Output the result of the previous SQL. - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1412 /* "output" */) == 0 { - logMessage(tls, ts+503 /* "%s" */, crt.VaList(bp+136, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z)) + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1347 /* "output" */) == 0 { + logMessage(tls, ts+438 /* "%s" */, crt.VaList(bp+136, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z)) } else // --source FILENAME // // Run a subscript from a separate file. - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1419 /* "source" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1354 /* "source" */) == 0 { var zNewFile uintptr var zNewScript uintptr var zToDel uintptr = uintptr(0) @@ -4234,17 +4230,17 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile for k = (int32(crt.Xstrlen(tls, zFilename)) - 1); (k >= 0) && !((int32(*(*int8)(unsafe.Pointer(zFilename + uintptr(k))))) == '/'); k-- { } if k > 0 { - zNewFile = crt.AssignUintptr(&zToDel, sqlite3.Xsqlite3_mprintf(tls, ts+1426 /* "%.*s/%s" */, crt.VaList(bp+144, k, zFilename, zNewFile))) + zNewFile = crt.AssignUintptr(&zToDel, sqlite3.Xsqlite3_mprintf(tls, ts+1361 /* "%.*s/%s" */, crt.VaList(bp+144, k, zFilename, zNewFile))) } } zNewScript = readFile(tls, zNewFile) if g.iTrace != 0 { - logMessage(tls, ts+1434 /* "begin script [%s..." */, crt.VaList(bp+168, zNewFile)) + logMessage(tls, ts+1369 /* "begin script [%s..." */, crt.VaList(bp+168, zNewFile)) } runScript(tls, 0, 0, zNewScript, zNewFile) sqlite3.Xsqlite3_free(tls, zNewScript) if g.iTrace != 0 { - logMessage(tls, ts+1453 /* "end script [%s]\n" */, crt.VaList(bp+176, zNewFile)) + logMessage(tls, ts+1388 /* "end script [%s]\n" */, crt.VaList(bp+176, zNewFile)) } sqlite3.Xsqlite3_free(tls, zToDel) } else @@ -4252,23 +4248,23 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // --print MESSAGE.... // // Output the remainder of the line to the log file - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1470 /* "print" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1405 /* "print" */) == 0 { var jj int32 for jj = 7; (jj < len) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zScript + uintptr((ii + jj)))))))*2))) & int32(uint16(8192))) != 0); jj++ { } - logMessage(tls, ts+1267 /* "%.*s" */, crt.VaList(bp+184, (len-jj), ((zScript+uintptr(ii))+uintptr(jj)))) + logMessage(tls, ts+1202 /* "%.*s" */, crt.VaList(bp+184, (len-jj), ((zScript+uintptr(ii))+uintptr(jj)))) } else // --if EXPR // // Skip forward to the next matching --endif or --else if EXPR is false. - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1476 /* "if" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1411 /* "if" */) == 0 { var jj int32 var rc int32 var pStmt uintptr for jj = 4; (jj < len) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zScript + uintptr((ii + jj)))))))*2))) & int32(uint16(8192))) != 0); jj++ { } - pStmt = prepareSql(tls, ts+1479 /* "SELECT %.*s" */, crt.VaList(bp+200, (len-jj), ((zScript+uintptr(ii))+uintptr(jj)))) + pStmt = prepareSql(tls, ts+1414 /* "SELECT %.*s" */, crt.VaList(bp+200, (len-jj), ((zScript+uintptr(ii))+uintptr(jj)))) rc = sqlite3.Xsqlite3_step(tls, pStmt) if (rc != 100) || (sqlite3.Xsqlite3_column_int(tls, pStmt, 0) == 0) { ii = ii + (findEndif(tls, ((zScript + uintptr(ii)) + uintptr(len)), 1, bp+376 /* &lineno */)) @@ -4280,7 +4276,7 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // // This command can only be encountered if currently inside an --if that // is true. Skip forward to the next matching --endif. - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1491 /* "else" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1426 /* "else" */) == 0 { ii = ii + (findEndif(tls, ((zScript + uintptr(ii)) + uintptr(len)), 0, bp+376 /* &lineno */)) } else @@ -4288,13 +4284,13 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // // This command can only be encountered if currently inside an --if that // is true or an --else of a false if. This is a no-op. - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1496 /* "endif" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1431 /* "endif" */) == 0 { } else // --start CLIENT // // Start up the given client. - if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1502 /* "start" */) == 0) && (iClient == 0) { + if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1437 /* "start" */) == 0) && (iClient == 0) { var iNewClient int32 = crt.Xatoi(tls, (bp + 410 /* &azArg[0] */ + uintptr(0)*100)) if iNewClient > 0 { startClient(tls, iNewClient) @@ -4306,14 +4302,14 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // Wait until all tasks complete for the given client. If CLIENT is // "all" then wait for all clients to complete. Wait no longer than // TIMEOUT milliseconds (default 10,000) - if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1508 /* "wait" */) == 0) && (iClient == 0) { + if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1443 /* "wait" */) == 0) && (iClient == 0) { var iTimeout int32 if nArg >= 2 { iTimeout = crt.Xatoi(tls, (bp + 410 /* &azArg[0] */ + uintptr(1)*100)) } else { iTimeout = 10000 } - sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([1000]int8{})), bp+610 /* &zError[0] */, ts+1513, /* "line %d of %s\n" */ + sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([1000]int8{})), bp+610 /* &zError[0] */, ts+1448, /* "line %d of %s\n" */ crt.VaList(bp+216, prevLine, zFilename)) waitForClient(tls, crt.Xatoi(tls, (bp+410 /* &azArg[0] */ +uintptr(0)*100)), iTimeout, bp+610 /* &zError[0] */) } else @@ -4324,25 +4320,25 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // // Assign work to a client. Start the client if it is not running // already. - if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1528 /* "task" */) == 0) && (iClient == 0) { + if (crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1463 /* "task" */) == 0) && (iClient == 0) { var iTarget int32 = crt.Xatoi(tls, (bp + 410 /* &azArg[0] */ + uintptr(0)*100)) var iEnd int32 var zTask uintptr var zTName uintptr iEnd = findEnd(tls, ((zScript + uintptr(ii)) + uintptr(len)), bp+376 /* &lineno */) if iTarget < 0 { - errorMessage(tls, ts+1533, /* "line %d of %s: b..." */ + errorMessage(tls, ts+1468, /* "line %d of %s: b..." */ crt.VaList(bp+232, prevLine, zFilename, iTarget)) } else { - zTask = sqlite3.Xsqlite3_mprintf(tls, ts+1267 /* "%.*s" */, crt.VaList(bp+256, iEnd, ((zScript+uintptr(ii))+uintptr(len)))) + zTask = sqlite3.Xsqlite3_mprintf(tls, ts+1202 /* "%.*s" */, crt.VaList(bp+256, iEnd, ((zScript+uintptr(ii))+uintptr(len)))) if nArg > 1 { - zTName = sqlite3.Xsqlite3_mprintf(tls, ts+503 /* "%s" */, crt.VaList(bp+272, (bp+410 /* &azArg[0] */ +uintptr(1)*100))) + zTName = sqlite3.Xsqlite3_mprintf(tls, ts+438 /* "%s" */, crt.VaList(bp+272, (bp+410 /* &azArg[0] */ +uintptr(1)*100))) } else { - zTName = sqlite3.Xsqlite3_mprintf(tls, ts+1570 /* "%s:%d" */, crt.VaList(bp+280, filenameTail(tls, zFilename), prevLine)) + zTName = sqlite3.Xsqlite3_mprintf(tls, ts+1505 /* "%s:%d" */, crt.VaList(bp+280, filenameTail(tls, zFilename), prevLine)) } startClient(tls, iTarget) runSql(tls, - ts+1576 /* "INSERT INTO task..." */, crt.VaList(bp+296, iTarget, zTask, zTName)) + ts+1511 /* "INSERT INTO task..." */, crt.VaList(bp+296, iTarget, zTask, zTName)) sqlite3.Xsqlite3_free(tls, zTask) sqlite3.Xsqlite3_free(tls, zTName) } @@ -4355,14 +4351,14 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile // // This command calls "test_breakpoint()" which is a routine provided // as a convenient place to set a debugger breakpoint. - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1632 /* "breakpoint" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1567 /* "breakpoint" */) == 0 { test_breakpoint(tls) } else // --show-sql-errors BOOLEAN // // Turn display of SQL errors on and off. - if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1643 /* "show-sql-errors" */) == 0 { + if crt.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1578 /* "show-sql-errors" */) == 0 { g.bIgnoreSqlErrors = func() int32 { if nArg >= 1 { return crt.BoolInt32(!(booleanValue(tls, (bp+410 /* &azArg[0] */ +uintptr(0)*100)) != 0)) @@ -4370,13 +4366,13 @@ func runScript(tls *crt.TLS, iClient int32, taskId int32, zScript uintptr, zFile return 1 }() } else { - errorMessage(tls, ts+1659, /* "line %d of %s: u..." */ + errorMessage(tls, ts+1594, /* "line %d of %s: u..." */ crt.VaList(bp+320, prevLine, zFilename, bp+380 /* &zCmd[0] */)) } ii = ii + (len) } if iBegin < ii { - var zSql uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+1267 /* "%.*s" */, crt.VaList(bp+344, (ii-iBegin), (zScript+uintptr(iBegin)))) + var zSql uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+1202 /* "%.*s" */, crt.VaList(bp+344, (ii-iBegin), (zScript+uintptr(iBegin)))) runSql(tls, zSql, 0) sqlite3.Xsqlite3_free(tls, zSql) } @@ -4398,9 +4394,6 @@ func findOption(tls *crt.TLS, azArg uintptr, pnArg uintptr, zOption uintptr, has var zReturn uintptr = uintptr(0) var nArg int32 = *(*int32)(unsafe.Pointer(pnArg)) - if !((hasArg == 0) || (hasArg == 1)) { - crt.X__assert_fail(tls, ts+1695 /* "hasArg==0 || has..." */, ts+164 /* "testdata/sqlite-..." */, uint32(1211), uintptr(unsafe.Pointer(&__func__1))) - } for i = 0; i < nArg; i++ { var z uintptr if (i + hasArg) >= nArg { @@ -4419,7 +4412,7 @@ func findOption(tls *crt.TLS, azArg uintptr, pnArg uintptr, zOption uintptr, has } if crt.Xstrcmp(tls, z, zOption) == 0 { if (hasArg != 0) && (i == (nArg - 1)) { - fatalError(tls, ts+1718 /* "command-line opt..." */, crt.VaList(bp, z)) + fatalError(tls, ts+1630 /* "command-line opt..." */, crt.VaList(bp, z)) } if hasArg != 0 { zReturn = *(*uintptr)(unsafe.Pointer(azArg + uintptr((i+1))*8)) @@ -4437,8 +4430,6 @@ func findOption(tls *crt.TLS, azArg uintptr, pnArg uintptr, zOption uintptr, has return zReturn } -var __func__1 = *(*[11]int8)(unsafe.Pointer(ts + 1766 /* "findOption" */)) /* mptest.c:1206:2 */ - // Print a usage message for the program and exit func usage(tls *crt.TLS, argv0 uintptr) { /* mptest.c:1241:13: */ bp := tls.Alloc(8) @@ -4451,10 +4442,10 @@ func usage(tls *crt.TLS, argv0 uintptr) { /* mptest.c:1241:13: */ zTail = ((argv0 + uintptr(i)) + uintptr(1)) } } - crt.Xfprintf(tls, crt.Xstderr, ts+1777 /* "Usage: %s DATABA..." */, crt.VaList(bp, zTail)) + crt.Xfprintf(tls, crt.Xstderr, ts+1678 /* "Usage: %s DATABA..." */, crt.VaList(bp, zTail)) crt.Xfprintf(tls, crt.Xstderr, - ts+1816 /* "Options:\n --er..." */, 0) + ts+1717 /* "Options:\n --er..." */, 0) crt.Xexit(tls, 1) } @@ -4464,11 +4455,11 @@ func unrecognizedArguments(tls *crt.TLS, argv0 uintptr, nArg int32, azArg uintpt defer tls.Free(16) var i int32 - crt.Xfprintf(tls, crt.Xstderr, ts+2388 /* "%s: unrecognized..." */, crt.VaList(bp, argv0)) + crt.Xfprintf(tls, crt.Xstderr, ts+2289 /* "%s: unrecognized..." */, crt.VaList(bp, argv0)) for i = 0; i < nArg; i++ { - crt.Xfprintf(tls, crt.Xstderr, ts+2416 /* " %s" */, crt.VaList(bp+8, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)))) + crt.Xfprintf(tls, crt.Xstderr, ts+2317 /* " %s" */, crt.VaList(bp+8, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)))) } - crt.Xfprintf(tls, crt.Xstderr, ts+2420 /* "\n" */, 0) + crt.Xfprintf(tls, crt.Xstderr, ts+2321 /* "\n" */, 0) crt.Xexit(tls, 1) } @@ -4502,50 +4493,50 @@ func main1(tls *crt.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18: usage(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) } g.zDbFile = *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)) - if strglob(tls, ts+2422 /* "*.test" */, g.zDbFile) != 0 { + if strglob(tls, ts+2323 /* "*.test" */, g.zDbFile) != 0 { usage(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) } - if crt.Xstrcmp(tls, sqlite3.Xsqlite3_sourceid(tls), ts+2429 /* "2020-06-18 14:00..." */) != 0 { + if crt.Xstrcmp(tls, sqlite3.Xsqlite3_sourceid(tls), ts+2330 /* "2020-06-18 14:00..." */) != 0 { crt.Xfprintf(tls, crt.Xstderr, - ts+2514, /* "SQLite library a..." */ - crt.VaList(bp, sqlite3.Xsqlite3_sourceid(tls), ts+2429 /* "2020-06-18 14:00..." */)) + ts+2415, /* "SQLite library a..." */ + crt.VaList(bp, sqlite3.Xsqlite3_sourceid(tls), ts+2330 /* "2020-06-18 14:00..." */)) crt.Xexit(tls, 1) } *(*int32)(unsafe.Pointer(bp + 232 /* n */)) = (argc - 2) - sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([32]int8{})), uintptr(unsafe.Pointer(&g))+64 /* &.zName */, ts+2574 /* "%05d.mptest" */, crt.VaList(bp+16, crt.Xgetpid(tls))) - zJMode = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2586 /* "journalmode" */, 1) - zNRep = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2598 /* "repeat" */, 1) + sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([32]int8{})), uintptr(unsafe.Pointer(&g))+64 /* &.zName */, ts+2475 /* "%05d.mptest" */, crt.VaList(bp+16, crt.Xgetpid(tls))) + zJMode = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2487 /* "journalmode" */, 1) + zNRep = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2499 /* "repeat" */, 1) if zNRep != 0 { nRep = crt.Xatoi(tls, zNRep) } if nRep < 1 { nRep = 1 } - g.zVfs = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2605 /* "vfs" */, 1) - zClient = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2609 /* "client" */, 1) - g.zErrLog = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2616 /* "errlog" */, 1) - g.zLog = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2623 /* "log" */, 1) - zTrace = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2627 /* "trace" */, 1) + g.zVfs = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2506 /* "vfs" */, 1) + zClient = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2510 /* "client" */, 1) + g.zErrLog = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2517 /* "errlog" */, 1) + g.zLog = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2524 /* "log" */, 1) + zTrace = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2528 /* "trace" */, 1) if zTrace != 0 { g.iTrace = crt.Xatoi(tls, zTrace) } - if findOption(tls, (argv+uintptr(2)*8), bp+232 /* &n */, ts+2633 /* "quiet" */, 0) != uintptr(0) { + if findOption(tls, (argv+uintptr(2)*8), bp+232 /* &n */, ts+2534 /* "quiet" */, 0) != uintptr(0) { g.iTrace = 0 } - zTmout = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2639 /* "timeout" */, 1) + zTmout = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2540 /* "timeout" */, 1) if zTmout != 0 { iTmout = crt.Xatoi(tls, zTmout) } - g.bSqlTrace = (crt.Bool32(findOption(tls, (argv+uintptr(2)*8), bp+232 /* &n */, ts+2647 /* "sqltrace" */, 0) != uintptr(0))) - g.bSync = (crt.Bool32(findOption(tls, (argv+uintptr(2)*8), bp+232 /* &n */, ts+2656 /* "sync" */, 0) != uintptr(0))) + g.bSqlTrace = (crt.Bool32(findOption(tls, (argv+uintptr(2)*8), bp+232 /* &n */, ts+2548 /* "sqltrace" */, 0) != uintptr(0))) + g.bSync = (crt.Bool32(findOption(tls, (argv+uintptr(2)*8), bp+232 /* &n */, ts+2557 /* "sync" */, 0) != uintptr(0))) if g.zErrLog != 0 { - g.pErrLog = crt.Xfopen(tls, g.zErrLog, ts+2661 /* "a" */) + g.pErrLog = crt.Xfopen(tls, g.zErrLog, ts+2562 /* "a" */) } else { g.pErrLog = crt.Xstderr } if g.zLog != 0 { - g.pLog = crt.Xfopen(tls, g.zLog, ts+2661 /* "a" */) + g.pLog = crt.Xfopen(tls, g.zLog, ts+2562 /* "a" */) } else { g.pLog = crt.Xstdout } @@ -4556,33 +4547,33 @@ func main1(tls *crt.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18: if zClient != 0 { iClient = crt.Xatoi(tls, zClient) if iClient < 1 { - fatalError(tls, ts+2663 /* "illegal client n..." */, crt.VaList(bp+40, iClient)) + fatalError(tls, ts+2564 /* "illegal client n..." */, crt.VaList(bp+40, iClient)) } - sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([32]int8{})), uintptr(unsafe.Pointer(&g))+64 /* &.zName */, ts+2690, /* "%05d.client%02d" */ + sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([32]int8{})), uintptr(unsafe.Pointer(&g))+64 /* &.zName */, ts+2591, /* "%05d.client%02d" */ crt.VaList(bp+48, crt.Xgetpid(tls), iClient)) } else { var nTry int32 = 0 if g.iTrace > 0 { - crt.Xprintf(tls, ts+2706 /* "BEGIN: %s" */, crt.VaList(bp+64, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))) + crt.Xprintf(tls, ts+2607 /* "BEGIN: %s" */, crt.VaList(bp+64, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))) for i = 1; i < argc; i++ { - crt.Xprintf(tls, ts+2416 /* " %s" */, crt.VaList(bp+72, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))) + crt.Xprintf(tls, ts+2317 /* " %s" */, crt.VaList(bp+72, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))) } - crt.Xprintf(tls, ts+2420 /* "\n" */, 0) - crt.Xprintf(tls, ts+2716 /* "With SQLite 3.32..." */, 0) + crt.Xprintf(tls, ts+2321 /* "\n" */, 0) + crt.Xprintf(tls, ts+2617 /* "With SQLite 3.32..." */, 0) for i = 0; (crt.AssignUintptr(&zCOption, sqlite3.Xsqlite3_compileoption_get(tls, i))) != uintptr(0); i++ { - crt.Xprintf(tls, ts+2821 /* "-DSQLITE_%s\n" */, crt.VaList(bp+80, zCOption)) + crt.Xprintf(tls, ts+2722 /* "-DSQLITE_%s\n" */, crt.VaList(bp+80, zCOption)) } crt.Xfflush(tls, crt.Xstdout) } iClient = 0 for ok := true; ok; ok = (((rc != 0) && ((crt.PreIncInt32(&nTry, 1)) < 60)) && (sqlite3.Xsqlite3_sleep(tls, 1000) > 0)) { if (nTry % 5) == 4 { - crt.Xprintf(tls, ts+2834, /* "... %strying to ..." */ + crt.Xprintf(tls, ts+2735, /* "... %strying to ..." */ crt.VaList(bp+88, func() uintptr { if nTry > 5 { - return ts + 2863 /* "still " */ + return ts + 2764 /* "still " */ } - return ts + 1164 /* "" */ + return ts + 1099 /* "" */ }(), g.zDbFile)) } rc = crt.Xunlink(tls, g.zDbFile) @@ -4591,34 +4582,34 @@ func main1(tls *crt.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18: } } if rc != 0 { - fatalError(tls, ts+2870, /* "unable to unlink..." */ + fatalError(tls, ts+2771, /* "unable to unlink..." */ crt.VaList(bp+104, g.zDbFile, nTry)) } openFlags = openFlags | (0x00000004) } rc = sqlite3.Xsqlite3_open_v2(tls, g.zDbFile, (uintptr(unsafe.Pointer(&g)) + 24 /* &.db */), openFlags, g.zVfs) if rc != 0 { - fatalError(tls, ts+2911 /* "cannot open [%s]" */, crt.VaList(bp+120, g.zDbFile)) + fatalError(tls, ts+2812 /* "cannot open [%s]" */, crt.VaList(bp+120, g.zDbFile)) } if iTmout > 0 { sqlite3.Xsqlite3_busy_timeout(tls, g.db, iTmout) } if zJMode != 0 { - runSql(tls, ts+2928 /* "PRAGMA journal_m..." */, crt.VaList(bp+128, zJMode)) + runSql(tls, ts+2829 /* "PRAGMA journal_m..." */, crt.VaList(bp+128, zJMode)) } if !(g.bSync != 0) { - trySql(tls, ts+2952 /* "PRAGMA synchrono..." */, 0) + trySql(tls, ts+2853 /* "PRAGMA synchrono..." */, 0) } sqlite3.Xsqlite3_enable_load_extension(tls, g.db, 1) sqlite3.Xsqlite3_busy_handler(tls, g.db, *(*uintptr)(unsafe.Pointer(&struct { f func(*crt.TLS, uintptr, int32) int32 }{busyHandler})), uintptr(0)) - sqlite3.Xsqlite3_create_function(tls, g.db, ts+2975 /* "vfsname" */, 0, 1, uintptr(0), + sqlite3.Xsqlite3_create_function(tls, g.db, ts+2876 /* "vfsname" */, 0, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*crt.TLS, uintptr, int32, uintptr) }{vfsNameFunc})), uintptr(0), uintptr(0)) - sqlite3.Xsqlite3_create_function(tls, g.db, ts+2983 /* "eval" */, 1, 1, uintptr(0), + sqlite3.Xsqlite3_create_function(tls, g.db, ts+2884 /* "eval" */, 1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*crt.TLS, uintptr, int32, uintptr) }{evalFunc})), uintptr(0), uintptr(0)) @@ -4633,7 +4624,7 @@ func main1(tls *crt.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18: unrecognizedArguments(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), *(*int32)(unsafe.Pointer(bp + 232 /* n */)), (argv + uintptr(2)*8)) } if g.iTrace != 0 { - logMessage(tls, ts+2988 /* "start-client" */, 0) + logMessage(tls, ts+2889 /* "start-client" */, 0) } for 1 != 0 { *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */)) = uintptr(0) @@ -4642,54 +4633,54 @@ func main1(tls *crt.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18: break } if g.iTrace != 0 { - logMessage(tls, ts+3001 /* "begin %s (%d)" */, crt.VaList(bp+136, *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */)), *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)))) + logMessage(tls, ts+2902 /* "begin %s (%d)" */, crt.VaList(bp+136, *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */)), *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)))) } runScript(tls, iClient, *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)), *(*uintptr)(unsafe.Pointer(bp + 240 /* zScript */)), *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */))) if g.iTrace != 0 { - logMessage(tls, ts+3015 /* "end %s (%d)" */, crt.VaList(bp+152, *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */)), *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)))) + logMessage(tls, ts+2916 /* "end %s (%d)" */, crt.VaList(bp+152, *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */)), *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)))) } finishScript(tls, iClient, *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)), 0) sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */))) sqlite3.Xsqlite3_sleep(tls, 10) } if g.iTrace != 0 { - logMessage(tls, ts+3027 /* "end-client" */, 0) + logMessage(tls, ts+2928 /* "end-client" */, 0) } } else { var pStmt uintptr var iTimeout int32 if *(*int32)(unsafe.Pointer(bp + 232 /* n */)) == 0 { - fatalError(tls, ts+3038 /* "missing script f..." */, 0) + fatalError(tls, ts+2939 /* "missing script f..." */, 0) } if *(*int32)(unsafe.Pointer(bp + 232 /* n */)) > 1 { unrecognizedArguments(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), *(*int32)(unsafe.Pointer(bp + 232 /* n */)), (argv + uintptr(2)*8)) } runSql(tls, - ts+3062 /* "DROP TABLE IF EX..." */, 0) + ts+2963 /* "DROP TABLE IF EX..." */, 0) *(*uintptr)(unsafe.Pointer(bp + 240 /* zScript */)) = readFile(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))) for iRep = 1; iRep <= nRep; iRep++ { if g.iTrace != 0 { - logMessage(tls, ts+3498 /* "begin script [%s..." */, crt.VaList(bp+168, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), iRep)) + logMessage(tls, ts+3399 /* "begin script [%s..." */, crt.VaList(bp+168, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), iRep)) } runScript(tls, 0, 0, *(*uintptr)(unsafe.Pointer(bp + 240 /* zScript */)), *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))) if g.iTrace != 0 { - logMessage(tls, ts+3526 /* "end script [%s] ..." */, crt.VaList(bp+184, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), iRep)) + logMessage(tls, ts+3427 /* "end script [%s] ..." */, crt.VaList(bp+184, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), iRep)) } } sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 240 /* zScript */))) - waitForClient(tls, 0, 2000, ts+3552 /* "during shutdown...." */) - trySql(tls, ts+3572 /* "UPDATE client SE..." */, 0) + waitForClient(tls, 0, 2000, ts+3453 /* "during shutdown...." */) + trySql(tls, ts+3473 /* "UPDATE client SE..." */, 0) sqlite3.Xsqlite3_sleep(tls, 10) g.iTimeout = 0 iTimeout = 1000 - for (((crt.AssignInt32(&rc, trySql(tls, ts+3601 /* "SELECT 1 FROM cl..." */, 0))) == 5) || + for (((crt.AssignInt32(&rc, trySql(tls, ts+3502 /* "SELECT 1 FROM cl..." */, 0))) == 5) || (rc == 100)) && (iTimeout > 0) { sqlite3.Xsqlite3_sleep(tls, 10) iTimeout = iTimeout - (10) } sqlite3.Xsqlite3_sleep(tls, 100) - pStmt = prepareSql(tls, ts+3622 /* "SELECT nError, n..." */, 0) + pStmt = prepareSql(tls, ts+3523 /* "SELECT nError, n..." */, 0) iTimeout = 1000 for ((crt.AssignInt32(&rc, sqlite3.Xsqlite3_step(tls, pStmt))) == 5) && (iTimeout > 0) { sqlite3.Xsqlite3_sleep(tls, 10) @@ -4705,15 +4696,15 @@ func main1(tls *crt.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18: maybeClose(tls, g.pLog) maybeClose(tls, g.pErrLog) if iClient == 0 { - crt.Xprintf(tls, ts+3657 /* "Summary: %d erro..." */, crt.VaList(bp+200, g.nError, g.nTest)) - crt.Xprintf(tls, ts+3693 /* "END: %s" */, crt.VaList(bp+216, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))) + crt.Xprintf(tls, ts+3558 /* "Summary: %d erro..." */, crt.VaList(bp+200, g.nError, g.nTest)) + crt.Xprintf(tls, ts+3594 /* "END: %s" */, crt.VaList(bp+216, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))) for i = 1; i < argc; i++ { - crt.Xprintf(tls, ts+2416 /* " %s" */, crt.VaList(bp+224, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))) + crt.Xprintf(tls, ts+2317 /* " %s" */, crt.VaList(bp+224, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))) } - crt.Xprintf(tls, ts+2420 /* "\n" */, 0) + crt.Xprintf(tls, ts+2321 /* "\n" */, 0) } return (crt.Bool32(g.nError > 0)) } -var ts1 = "%s%.*s\n\x00%s:ERROR: \x00%s:FATAL: \x00UPDATE client SET wantHalt=1;\x00%s: \x00main\x00timeout after %dms\x00[%.*s]\x00(info) %s\x00(errcode=%d) %s\x00%s\n%s\n\x00out of memory\x00 \x00nil\x00'\x00g.iTimeout>0\x00testdata/sqlite-src-3320300/mptest/mptest.c\x00error(%d)\x00evalSql\x00BEGIN IMMEDIATE\x00in startScript: %s\x00UPDATE counters SET nError=nError+%d, nTest=nTest+%d\x00SELECT 1 FROM client WHERE id=%d AND wantHalt\x00DELETE FROM client WHERE id=%d\x00COMMIT TRANSACTION;\x00SELECT script, id, name FROM task WHERE client=%d AND starttime IS NULL ORDER BY id LIMIT 1\x00%s\x00UPDATE task SET starttime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00Waited over 30 seconds with no work. Giving up.\x00DELETE FROM client WHERE id=%d; COMMIT;\x00COMMIT\x00UPDATE task SET endtime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00INSERT OR IGNORE INTO client VALUES(%d,0)\x00%s \"%s\" --client %d --trace %d\x00%z --sqltrace\x00%z --sync\x00%z --vfs \"%s\"\x00system('%q')\x00%z &\x00system() fails with error code %d\x00rb\x00cannot open \"%s\" for reading\x00--end\x00--endif\x00--else\x00--if\x00SELECT 1 FROM task WHERE client=%d AND client IN (SELECT id FROM client) AND endtime IS NULL\x00SELECT 1 FROM task WHERE client IN (SELECT id FROM client) AND endtime IS NULL\x00\x00%stimeout waiting for client %d\x00%stimeout waiting for all clients\x00on\x00yes\x00off\x00no\x00unknown boolean: [%s]\x00%.*s\x00sleep\x00exit\x00testcase\x00finish\x00reset\x00match\x00line %d of %s:\nExpected [%.*s]\n Got [%s]\x00glob\x00notglob\x00line %d of %s:\nExpected [%s]\n Got [%s]\x00output\x00source\x00%.*s/%s\x00begin script [%s]\n\x00end script [%s]\n\x00print\x00if\x00SELECT %.*s\x00else\x00endif\x00start\x00wait\x00line %d of %s\n\x00task\x00line %d of %s: bad client number: %d\x00%s:%d\x00INSERT INTO task(client,script,name) VALUES(%d,'%q',%Q)\x00breakpoint\x00show-sql-errors\x00line %d of %s: unknown command --%s\x00hasArg==0 || hasArg==1\x00command-line option \"--%s\" requires an argument\x00findOption\x00Usage: %s DATABASE ?OPTIONS? ?SCRIPT?\n\x00Options:\n --errlog FILENAME Write errors to FILENAME\n --journalmode MODE Use MODE as the journal_mode\n --log FILENAME Log messages to FILENAME\n --quiet Suppress unnecessary output\n --vfs NAME Use NAME as the VFS\n --repeat N Repeat the test N times\n --sqltrace Enable SQL tracing\n --sync Enable synchronous disk writes\n --timeout MILLISEC Busy timeout is MILLISEC\n --trace BOOLEAN Enable or disable tracing\n\x00%s: unrecognized arguments:\x00 %s\x00\n\x00*.test\x002020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd\x00SQLite library and header mismatch\nLibrary: %s\nHeader: %s\n\x00%05d.mptest\x00journalmode\x00repeat\x00vfs\x00client\x00errlog\x00log\x00trace\x00quiet\x00timeout\x00sqltrace\x00sync\x00a\x00illegal client number: %d\n\x00%05d.client%02d\x00BEGIN: %s\x00With SQLite 3.32.3 2020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd\n\x00-DSQLITE_%s\n\x00... %strying to unlink '%s'\n\x00still \x00unable to unlink '%s' after %d attempts\n\x00cannot open [%s]\x00PRAGMA journal_mode=%Q;\x00PRAGMA synchronous=OFF\x00vfsname\x00eval\x00start-client\x00begin %s (%d)\x00end %s (%d)\x00end-client\x00missing script filename\x00DROP TABLE IF EXISTS task;\nDROP TABLE IF EXISTS counters;\nDROP TABLE IF EXISTS client;\nCREATE TABLE task(\n id INTEGER PRIMARY KEY,\n name TEXT,\n client INTEGER,\n starttime DATE,\n endtime DATE,\n script TEXT\n);CREATE INDEX task_i1 ON task(client, starttime);\nCREATE INDEX task_i2 ON task(client, endtime);\nCREATE TABLE counters(nError,nTest);\nINSERT INTO counters VALUES(0,0);\nCREATE TABLE client(id INTEGER PRIMARY KEY, wantHalt);\n\x00begin script [%s] cycle %d\n\x00end script [%s] cycle %d\n\x00during shutdown...\n\x00UPDATE client SET wantHalt=1\x00SELECT 1 FROM client\x00SELECT nError, nTest FROM counters\x00Summary: %d errors out of %d tests\n\x00END: %s\x00" +var ts1 = "%s%.*s\n\x00%s:ERROR: \x00%s:FATAL: \x00UPDATE client SET wantHalt=1;\x00%s: \x00main\x00timeout after %dms\x00[%.*s]\x00(info) %s\x00(errcode=%d) %s\x00%s\n%s\n\x00out of memory\x00 \x00nil\x00'\x00error(%d)\x00BEGIN IMMEDIATE\x00in startScript: %s\x00UPDATE counters SET nError=nError+%d, nTest=nTest+%d\x00SELECT 1 FROM client WHERE id=%d AND wantHalt\x00DELETE FROM client WHERE id=%d\x00COMMIT TRANSACTION;\x00SELECT script, id, name FROM task WHERE client=%d AND starttime IS NULL ORDER BY id LIMIT 1\x00%s\x00UPDATE task SET starttime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00Waited over 30 seconds with no work. Giving up.\x00DELETE FROM client WHERE id=%d; COMMIT;\x00COMMIT\x00UPDATE task SET endtime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00INSERT OR IGNORE INTO client VALUES(%d,0)\x00%s \"%s\" --client %d --trace %d\x00%z --sqltrace\x00%z --sync\x00%z --vfs \"%s\"\x00system('%q')\x00%z &\x00system() fails with error code %d\x00rb\x00cannot open \"%s\" for reading\x00--end\x00--endif\x00--else\x00--if\x00SELECT 1 FROM task WHERE client=%d AND client IN (SELECT id FROM client) AND endtime IS NULL\x00SELECT 1 FROM task WHERE client IN (SELECT id FROM client) AND endtime IS NULL\x00\x00%stimeout waiting for client %d\x00%stimeout waiting for all clients\x00on\x00yes\x00off\x00no\x00unknown boolean: [%s]\x00%.*s\x00sleep\x00exit\x00testcase\x00finish\x00reset\x00match\x00line %d of %s:\nExpected [%.*s]\n Got [%s]\x00glob\x00notglob\x00line %d of %s:\nExpected [%s]\n Got [%s]\x00output\x00source\x00%.*s/%s\x00begin script [%s]\n\x00end script [%s]\n\x00print\x00if\x00SELECT %.*s\x00else\x00endif\x00start\x00wait\x00line %d of %s\n\x00task\x00line %d of %s: bad client number: %d\x00%s:%d\x00INSERT INTO task(client,script,name) VALUES(%d,'%q',%Q)\x00breakpoint\x00show-sql-errors\x00line %d of %s: unknown command --%s\x00command-line option \"--%s\" requires an argument\x00Usage: %s DATABASE ?OPTIONS? ?SCRIPT?\n\x00Options:\n --errlog FILENAME Write errors to FILENAME\n --journalmode MODE Use MODE as the journal_mode\n --log FILENAME Log messages to FILENAME\n --quiet Suppress unnecessary output\n --vfs NAME Use NAME as the VFS\n --repeat N Repeat the test N times\n --sqltrace Enable SQL tracing\n --sync Enable synchronous disk writes\n --timeout MILLISEC Busy timeout is MILLISEC\n --trace BOOLEAN Enable or disable tracing\n\x00%s: unrecognized arguments:\x00 %s\x00\n\x00*.test\x002020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd\x00SQLite library and header mismatch\nLibrary: %s\nHeader: %s\n\x00%05d.mptest\x00journalmode\x00repeat\x00vfs\x00client\x00errlog\x00log\x00trace\x00quiet\x00timeout\x00sqltrace\x00sync\x00a\x00illegal client number: %d\n\x00%05d.client%02d\x00BEGIN: %s\x00With SQLite 3.32.3 2020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd\n\x00-DSQLITE_%s\n\x00... %strying to unlink '%s'\n\x00still \x00unable to unlink '%s' after %d attempts\n\x00cannot open [%s]\x00PRAGMA journal_mode=%Q;\x00PRAGMA synchronous=OFF\x00vfsname\x00eval\x00start-client\x00begin %s (%d)\x00end %s (%d)\x00end-client\x00missing script filename\x00DROP TABLE IF EXISTS task;\nDROP TABLE IF EXISTS counters;\nDROP TABLE IF EXISTS client;\nCREATE TABLE task(\n id INTEGER PRIMARY KEY,\n name TEXT,\n client INTEGER,\n starttime DATE,\n endtime DATE,\n script TEXT\n);CREATE INDEX task_i1 ON task(client, starttime);\nCREATE INDEX task_i2 ON task(client, endtime);\nCREATE TABLE counters(nError,nTest);\nINSERT INTO counters VALUES(0,0);\nCREATE TABLE client(id INTEGER PRIMARY KEY, wantHalt);\n\x00begin script [%s] cycle %d\n\x00end script [%s] cycle %d\n\x00during shutdown...\n\x00UPDATE client SET wantHalt=1\x00SELECT 1 FROM client\x00SELECT nError, nTest FROM counters\x00Summary: %d errors out of %d tests\n\x00END: %s\x00" var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data |