1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Improved test coverage in date.c. Report an error if a malloc

fails within strftime(). (CVS 4721)

FossilOrigin-Name: 495fb41626dfbfbeeb748675b9476a4f7cec6c7a
This commit is contained in:
drh
2008-01-17 20:26:46 +00:00
parent 127b0a6105
commit 3334e948cf
5 changed files with 33 additions and 18 deletions

View File

@ -13,7 +13,7 @@
# that they have little in common.
#
#
# $Id: mallocB.test,v 1.6 2007/09/12 17:01:45 danielk1977 Exp $
# $Id: mallocB.test,v 1.7 2008/01/17 20:26:47 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -44,4 +44,8 @@ ifcapable subquery {
#
do_malloc_test mallocB-6 -sqlbody { SELECT test_auxdata('hello world'); }
do_malloc_test mallocB-7 -sqlbody {
SELECT strftime(hex(randomblob(50)) || '%Y', 'now')
}
finish_test