亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? malloc4.test

?? sqlite庫
?? TEST
字號:
# 2005 November 30## The author disclaims copyright to this source code.  In place of# a legal notice, here is a blessing:##    May you do good and not evil.#    May you find forgiveness for yourself and forgive others.#    May you share freely, never taking more than you give.##***********************************************************************## This file contains tests to ensure that the library handles malloc() failures# correctly. The emphasis in this file is on sqlite3_column_XXX() APIs.## $Id: malloc4.test,v 1.3 2006/01/23 07:52:41 danielk1977 Exp $#---------------------------------------------------------------------------# NOTES ON EXPECTED BEHAVIOUR## [193] When a memory allocation failure occurs during sqlite3_column_name(),#       sqlite3_column_name16(), sqlite3_column_decltype(), or#       sqlite3_column_decltype16() the function shall return NULL.##---------------------------------------------------------------------------set testdir [file dirname $argv0]source $testdir/tester.tcl# Only run these tests if memory debugging is turned on.if {[info command sqlite_malloc_stat]==""} {   puts "Skipping malloc tests: not compiled with -DSQLITE_MEMDEBUG..."   finish_test   return}ifcapable !utf16 {  finish_test  return}proc do_stmt_test {id sql} {  set ::sql $sql  set go 1  for {set n 1} {$go} {incr n} {    set testid "malloc4-$id.(iFail $n)"    # Prepare the statement    do_test ${testid}.1 {      set ::STMT [sqlite3_prepare $::DB $sql -1 TAIL]      expr [string length $::STMT] > 0    } {1}    # Set the Nth malloc() to fail.    sqlite_malloc_fail $n    # Test malloc failure in the _name(), _name16(), decltype() and    # decltype16() APIs. Calls that occur after the malloc() failure should    # return NULL. No error is raised though.    #    # ${testid}.2.1 - Call _name()    # ${testid}.2.2 - Call _name16()    # ${testid}.2.3 - Call _name()    # ${testid}.2.4 - Check that the return values of the above three calls are    #                 consistent with each other and with the simulated    #                 malloc() failures.    #    # Because the code that implements the _decltype() and _decltype16() APIs    # is the same as the _name() and _name16() implementations, we don't worry    # about explicitly testing them.    #    do_test ${testid}.2.1 {      set mf1 [expr [lindex [sqlite_malloc_stat] 2] <= 0]      set ::name8  [sqlite3_column_name $::STMT 0]      set mf2 [expr [lindex [sqlite_malloc_stat] 2] <= 0]      expr {$mf1 == $mf2 || $::name8 == ""}    } {1}    do_test ${testid}.2.2 {      set mf1 [expr [lindex [sqlite_malloc_stat] 2] <= 0]      set ::name16 [sqlite3_column_name16 $::STMT 0]      set ::name16 [encoding convertfrom unicode $::name16]      set ::name16 [string range $::name16 0 end-1]      set mf2 [expr [lindex [sqlite_malloc_stat] 2] <= 0]      expr {$mf1 == $mf2 || $::name16 == ""}    } {1}    do_test ${testid}.2.3 {      set mf1 [expr [lindex [sqlite_malloc_stat] 2] <= 0]      set ::name8_2 [sqlite3_column_name $::STMT 0]      set mf2 [expr [lindex [sqlite_malloc_stat] 2] <= 0]      expr {$mf1 == $mf2 || $::name8_2 == ""}    } {1}    set ::mallocFailed [expr [lindex [sqlite_malloc_stat] 2] <= 0]    do_test ${testid}.2.4 {      expr {        $::name8 == $::name8_2 && $::name16 == $::name8 && !$::mallocFailed ||        $::name8 == $::name8_2 && $::name16 == "" &&        $::mallocFailed ||        $::name8 == $::name16 && $::name8_2 == "" &&        $::mallocFailed ||        $::name8_2 == $::name16 && $::name8 == "" &&        $::mallocFailed      }    } {1}    # Step the statement so that we can call _text() and _text16().  Before    # running sqlite3_step(), make sure that malloc() is not about to fail.    # Memory allocation failures that occur within sqlite3_step() are tested    # elsewhere.    set mf [lindex [sqlite_malloc_stat] 2]    sqlite_malloc_fail 0    do_test ${testid}.3 {      sqlite3_step $::STMT    } {SQLITE_ROW}    sqlite_malloc_fail $mf    # Test for malloc() failures within _text() and _text16().    #    do_test ${testid}.4.1 {      set ::text8 [sqlite3_column_text $::STMT 0]      set mf [expr [lindex [sqlite_malloc_stat] 2] <= 0 && !$::mallocFailed]      expr {$mf==0 || $::text8 == ""}    } {1}    do_test ${testid}.4.2 {      set ::text16 [sqlite3_column_text16 $::STMT 0]      set ::text16 [encoding convertfrom unicode $::text16]      set ::text16 [string range $::text16 0 end-1]      set mf [expr [lindex [sqlite_malloc_stat] 2] <= 0 && !$::mallocFailed]      expr {$mf==0 || $::text16 == ""}    } {1}    do_test ${testid}.4.3 {      set ::text8_2 [sqlite3_column_text $::STMT 0]      set mf [expr [lindex [sqlite_malloc_stat] 2] <= 0 && !$::mallocFailed]      expr {$mf==0 || $::text8_2 == "" || ($::text16 == "" && $::text8 != "")}    } {1}    # Test for malloc() failures within _int(), _int64() and _real(). The only    # way this can occur is if the string has to be translated from UTF-16 to    # UTF-8 before being converted to a numeric value.    do_test ${testid}.4.4.1 {      set mf [lindex [sqlite_malloc_stat] 2]      sqlite_malloc_fail 0      sqlite3_column_text16 $::STMT 0      sqlite_malloc_fail $mf      sqlite3_column_int $::STMT 0    } {0}    do_test ${testid}.4.5 {      set mf [lindex [sqlite_malloc_stat] 2]      sqlite_malloc_fail 0      sqlite3_column_text16 $::STMT 0      sqlite_malloc_fail $mf      sqlite3_column_int64 $::STMT 0    } {0}    do_test ${testid}.4.6 {      set mf [lindex [sqlite_malloc_stat] 2]      sqlite_malloc_fail 0      sqlite3_column_text16 $::STMT 0      sqlite_malloc_fail $mf      sqlite3_column_double $::STMT 0    } {0.0}    set mallocFailedAfterStep [expr \      [lindex [sqlite_malloc_stat] 2] <= 0 && !$::mallocFailed    ]    sqlite_malloc_fail 0    # Test that if a malloc() failed the next call to sqlite3_step() returns    # SQLITE_ERROR. If malloc() did not fail, it should return SQLITE_DONE.    #    do_test ${testid}.5 {      sqlite3_step $::STMT    } [expr {$mallocFailedAfterStep ? "SQLITE_ERROR" : "SQLITE_DONE"}]    do_test ${testid}.6 {      sqlite3_finalize $::STMT    } [expr {$mallocFailedAfterStep ? "SQLITE_NOMEM" : "SQLITE_OK"}]    if {$::mallocFailed == 0 && $mallocFailedAfterStep == 0} {      sqlite_malloc_fail 0      set go 0    }  }}execsql {  CREATE TABLE tbl(    the_first_reasonably_long_column_name that_also_has_quite_a_lengthy_type  );  INSERT INTO tbl VALUES(    'An extra long string. Far too long to be stored in NBFS bytes.'  );}do_stmt_test 1 "SELECT * FROM tbl"sqlite_malloc_fail 0finish_test

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成人一区二区三区片免费| 全国精品久久少妇| 亚洲一区中文在线| 午夜精品福利一区二区蜜股av | www.一区二区| 在线视频一区二区三| 777色狠狠一区二区三区| 国产欧美精品一区aⅴ影院| 亚洲精品乱码久久久久久久久 | 日韩三级精品电影久久久| 久久久久99精品国产片| 一区二区三区精品久久久| 另类综合日韩欧美亚洲| av亚洲精华国产精华精华| 91麻豆精品久久久久蜜臀| 亚洲国产精品av| 三级在线观看一区二区| 成人免费视频一区| 欧美电影在线免费观看| 日本一区二区在线不卡| 午夜精品久久久久久不卡8050| 国产精品538一区二区在线| 欧美日韩国产一级片| 亚洲国产精品国自产拍av| 日本午夜精品一区二区三区电影 | 亚洲日本在线看| 久久精品国产一区二区三区免费看| 不卡视频一二三四| 日韩一级黄色片| 亚洲激情图片小说视频| 国产成人av一区| 日韩欧美亚洲一区二区| 亚洲精品国产一区二区精华液 | 国产欧美一区二区精品婷婷| 天天操天天色综合| 91美女蜜桃在线| 久久久精品免费网站| 日本成人超碰在线观看| 91福利在线导航| 中文字幕精品一区二区三区精品| 日本欧美一区二区| 欧美这里有精品| 国产精品视频第一区| 国产综合久久久久影院| 91精品国产91久久综合桃花| 亚洲精品菠萝久久久久久久| 高清不卡在线观看av| 欧美成人综合网站| 日本伊人午夜精品| 欧美精品成人一区二区三区四区| 亚洲免费在线观看视频| 菠萝蜜视频在线观看一区| 久久精品一区八戒影视| 久久国产综合精品| 日韩你懂的电影在线观看| 日本免费新一区视频| 欧美另类变人与禽xxxxx| 亚洲在线视频网站| 一本色道久久综合亚洲aⅴ蜜桃 | 在线视频欧美精品| 国产精品久久久久久一区二区三区 | 99久久99久久精品免费看蜜桃 | 成人精品小蝌蚪| 国产欧美视频一区二区| 国产高清不卡一区| 精品99一区二区三区| 国产一区三区三区| 精品国产一区二区三区av性色 | 久久久99精品久久| 国产精品自在在线| 国产欧美日韩综合| 懂色av一区二区在线播放| 中文字幕免费不卡| 99久久精品免费观看| 亚洲黄色尤物视频| 欧洲精品在线观看| 亚洲综合激情另类小说区| 欧美日韩国产区一| 五月天精品一区二区三区| 欧美一区二区三区四区视频| 免费的国产精品| 久久久精品免费观看| 不卡视频在线观看| 亚洲综合色成人| 欧美顶级少妇做爰| 久久91精品久久久久久秒播| 国产午夜精品一区二区| 成人高清免费观看| 亚洲精品国产品国语在线app| 欧美视频在线观看一区二区| 午夜精品久久久久久久99樱桃| 欧美一卡在线观看| 国产麻豆成人精品| 国产精品久久久久三级| 欧美亚洲国产一区二区三区| 日本sm残虐另类| 国产欧美一二三区| 日本道在线观看一区二区| 亚洲成人动漫在线免费观看| 精品久久一二三区| 不卡电影免费在线播放一区| 亚洲中国最大av网站| 日韩欧美久久久| 成人动漫一区二区| 亚洲成人免费在线观看| 久久综合国产精品| 91免费视频网址| 青青草伊人久久| 国产精品视频线看| 56国语精品自产拍在线观看| 国产成人免费视| 亚洲图片欧美视频| 国产亚洲自拍一区| 欧美午夜一区二区三区免费大片| 蜜桃视频一区二区| 亚洲欧洲av一区二区三区久久| 欧美精品丝袜久久久中文字幕| 国产又黄又大久久| 夜夜亚洲天天久久| 国产麻豆日韩欧美久久| 一区二区三区91| www激情久久| 91福利精品第一导航| 久久国产精品一区二区| 亚洲精品欧美二区三区中文字幕| 日韩欧美卡一卡二| 色婷婷综合激情| 国产一区二区在线免费观看| 亚洲综合在线电影| 久久久久久久久久久99999| 欧美日韩中文一区| 国产一区二区三区美女| 偷偷要91色婷婷| 国产精品久久久久久久蜜臀| 日韩免费看的电影| 91福利在线播放| 成人一级片在线观看| 日本va欧美va欧美va精品| 亚洲欧美国产77777| 久久综合av免费| 欧美精品一卡二卡| 色综合久久久久综合体桃花网| 国产一区二区三区日韩| 亚洲成va人在线观看| 亚洲欧洲精品一区二区精品久久久| 日韩美女一区二区三区四区| 日本韩国一区二区三区视频| 国产精华液一区二区三区| 日本不卡一二三区黄网| 一区二区欧美精品| 综合久久久久久| 中文字幕欧美日本乱码一线二线| 欧美不卡一二三| 欧美电影一区二区| 欧美三级欧美一级| 91免费观看视频在线| 成人一区二区三区在线观看| 国产一区二区三区四| 欧美性色综合网| 成人国产电影网| 国产伦精品一区二区三区免费 | 26uuu另类欧美| 在线成人免费观看| 欧美手机在线视频| 在线免费av一区| 99久久99久久综合| 成人高清免费在线播放| 国产成人免费在线| 韩国成人福利片在线播放| 裸体健美xxxx欧美裸体表演| 日韩高清在线观看| 天天综合天天做天天综合| 亚洲一区二区三区激情| 一区二区三区色| 亚洲免费观看视频| 亚洲精品欧美综合四区| 一区二区三区**美女毛片| 亚洲欧美经典视频| 伊人一区二区三区| 亚洲精品成a人| 亚洲国产一区二区视频| 亚洲成a人v欧美综合天堂下载| 亚洲尤物在线视频观看| 亚洲成av人片一区二区三区| 午夜成人在线视频| 日本sm残虐另类| 九九久久精品视频| 国产精品亚洲成人| 成人晚上爱看视频| 99精品久久99久久久久| 一本到一区二区三区| 欧洲视频一区二区| 欧美精品视频www在线观看| 91精品国产91久久久久久最新毛片| 欧美一区二区三区不卡| 欧美精品一区二区三区高清aⅴ| 久久蜜桃香蕉精品一区二区三区| 日本一区二区三区在线不卡| **性色生活片久久毛片| 亚洲高清在线精品|