Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 103) sorted by relevance

12345

/sqlite-3.40.0/test/
H A Dmalloc.test19 # $Id: malloc.test,v 1.81 2009/06/24 13:13:45 drh Exp $
23 set ::testprefix malloc
69 do_test malloc-1.X {
97 do_test malloc-2.X {
121 do_test malloc-3.X {
147 do_test malloc-4.X {
171 do_test malloc-5.X {
470 # hits this malloc() on little-endian hosts.
624 # particular malloc() call.
792 do_test malloc-32.$zRepeat.${::n}.integrity {
[all …]
H A Dmalloc4.test12 # This file contains tests to ensure that the library handles malloc() failures
54 # Set the Nth malloc() to fail.
57 # Test malloc failure in the _name(), _name16(), decltype() and
58 # decltype16() APIs. Calls that occur after the malloc() failure should
66 # malloc() failures.
103 # running sqlite3_step(), make sure that malloc() is not about to fail.
113 # Test for malloc() failures within _text() and _text16().
133 # Test for malloc() failures within _int(), _int64() and _real(). The only
164 # Test that if a malloc() failed the next call to sqlite3_step() returns
165 # SQLITE_ERROR. If malloc() did not fail, it should return SQLITE_DONE.
H A Dmalloc3.test12 # This file contains tests to ensure that the library handles malloc() failures
65 # handling of malloc() failures within ancillary procedures is tested
71 # malloc() failure may occur within any stage. If a memory allocation fails
100 # The effect of a malloc failure on concurrently executing SQL statements,
102 # the malloc() failure mandates statement rollback only. Currently, if
123 # after the malloc() fails. To avoid the corrupt tree being read by a
148 # behaviour of the system when malloc() fails during preparation or
150 # the Nth malloc is said to fail. The statement is executed until it
197 # malloc() fails, and the sql statement itself.
521 # Test what happens when a malloc() fails while there are other active
[all …]
H A DmallocC.test12 # This file tests aspects of the malloc failure while parsing
35 # Run the SQL. Malloc number $::n is set to fail. A malloc() failure
51 # If $::n is greater than the number of malloc() calls required to
58 # Recover from the malloc failure.
60 # Update: The new malloc() failure handling means that a transaction may
61 # still be active even if a malloc() has failed. But when these tests were
H A Dbitvec.test153 # "program". But it also causes a malloc error to occur after the
154 # "failcnt"-th malloc. The result should be "0" if no malloc failure
155 # occurs or "-1" if there is a malloc failure.
170 # Make sure malloc failures are handled sanily.
H A Dasync2.test49 foreach err [list ioerr malloc-transient malloc-persistent] {
65 malloc-persistent { sqlite3_memdebug_fail $n -repeat 1 }
66 malloc-transient { sqlite3_memdebug_fail $n -repeat 0 }
H A Dcrash5.test13 # This file tests aspects of recovery from a malloc() failure
67 # with the iFail'th malloc() set to fail. This operation will
70 # if malloc() fails at a particular point in sqlite3PagerMovepage(),
83 # If the transaction is still active (it may not be if the malloc()
100 # If the right malloc() failed during the 'CREATE INDEX' above and
H A Dpermutations.test190 that test malloc and IO errors are omitted.
218 test_set $allquicktests -exclude *malloc* *ioerr* *fault* -include malloc.test
330 that test malloc and IO errors are omitted.
682 malloc.test ioerr.test
694 select2.test update.test malloc.test ioerr.test
717 malloc.test ioerr.test
723 Run malloc.test and ioerr.test in persistent-journal mode.
727 malloc.test ioerr.test
744 Run malloc.test and ioerr.test in no-journal mode.
748 malloc.test ioerr.test
[all …]
H A Dmalloctraceviewer.tcl80 FROM malloc
83 FROM malloc
159 FROM malloc
252 populate_tree_widget mddb [mddb one {SELECT zTest FROM malloc LIMIT 1}]
H A Dmalloc8.test11 # This file contains additional out-of-memory checks (see malloc.tcl)
32 # is a type conversion that occurs and thus an opportunity for malloc()
90 do_test malloc-99.X {
H A Dmalloc9.test11 # This file contains additional out-of-memory checks (see malloc.tcl)
29 do_malloc_test malloc-9.1 -tclprep {
H A Dmalloc7.test11 # This file contains additional out-of-memory checks (see malloc.tcl)
42 do_test malloc-99.X {
H A DmallocB.test11 # This file contains additional out-of-memory checks (see malloc.tcl).
40 # malloc() failure in sqlite3_set_auxdata().
H A Dshared_err.test303 # Provoke a malloc() failure when a cursor position is being saved. This
304 # only happens with index cursors (because they malloc() space to save the
306 # key does not require a malloc() to store.
383 # Again provoke a malloc() failure when a cursor position is being saved,
455 # Test that one or more queries were aborted due to the malloc() failure.
461 # development of 3.5.0. If a malloc() failed while setting the page-size,
H A DmallocI.test12 # This test script checks malloc failures in various obscure operations.
43 # This tests that a malloc failure that occurs while passing the schema
H A Dfuzz_malloc.test13 # This file tests malloc failures in concert with fuzzy SQL generation.
76 # Test malloc failure during parsing (and execution) of a fuzzily
H A Dmemleak.test91 # Run the malloc tests and the misuse test after memory leak detection.
95 #catch {source $testdir/malloc.test}
H A DmallocA.test11 # This file contains additional out-of-memory checks (see malloc.tcl).
121 do_test malloc-99.X {
/sqlite-3.40.0/ext/fts1/
H A Dsimple_tokenizer.c26 char *str = malloc(strlen(s) + 1); in string_dup()
55 t = (simple_tokenizer *) malloc(sizeof(simple_tokenizer)); in simpleCreate()
97 c = (simple_tokenizer_cursor *) malloc(sizeof(simple_tokenizer_cursor)); in simpleOpen()
H A Dfts1.c74 sb->s = malloc(100); in initStringBuffer()
254 d->pData = malloc(nData); in docListInit()
266 DocList *d = (DocList *) malloc(sizeof(DocList)); in docListNew()
644 pAcc->pData = malloc(pUpdate->nData); in docListAccumulate()
873 char *str = malloc(n + 1); in string_dup_n()
906 r = result = malloc(len); in string_format()
1636 Token *aToken = malloc( strlen(z) * sizeof(aToken[0]) ); in tokenizeString()
1652 azToken = (char**)malloc( nToken*sizeof(char*) + totalSize ); in tokenizeString()
1838 azArg = malloc( sizeof(char*)*argc + n ); in parseSpec()
1948 v = (fulltext_vtab *) malloc(sizeof(fulltext_vtab)); in constructVtab()
[all …]
/sqlite-3.40.0/tool/
H A Dspeedtest16.c50 z16 = malloc( n*2 + 2 ); in asciiToUtf16le()
122 zSql = malloc( nSql+1 ); in main()
H A Dspeedtest8inst1.c91 p = (sqlite3_file *)malloc(pVfs->szOsFile); in readScriptFile()
102 zData = (char *)malloc(nByte+1); in readScriptFile()
H A Dfuzzershell.c928 pHeap = malloc( nHeap ); in main()
943 pLook = malloc( nLook*szLook ); in main()
948 pScratch = malloc( nScratch*(sqlite3_int64)szScratch ); in main()
955 pPCache = malloc( nPCache*(sqlite3_int64)szPCache ); in main()
980 zIn = malloc(nAlloc); in main()
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest_main.c342 aName = malloc(sizeof(struct SysName) * (nSys+1));
392 u8 *p = (u8*)malloc(n + 8); in testMalloc()
873 aTime = malloc(sizeof(int) * ArraySize(aSys) * nRow/nStep); in do_speed_tests()
874 aWrite = malloc(sizeof(int) * nRow/nStep); in do_speed_tests()
875 aSelTime = malloc(sizeof(int) * ArraySize(aSys) * nRow/nSelStep); in do_speed_tests()
1200 aPage = (char *)malloc(4096); in do_writer_test()
1201 aOrder = (int *)malloc(nBlock * sizeof(int)); in do_writer_test()
H A Dlsmtest3.c47 pRet = malloc(sizeof(CksumDb)); in testCksumArrayNew()
56 pRet->azCksum = (char **)malloc(nEntry * (sizeof(char *) + TEST_CKSUM_BYTES)); in testCksumArrayNew()

12345