mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Fix a test case in zipfilefault.test so that it only runs if JSON1 is
available. FossilOrigin-Name: 072b244790893a699dc49d7a2cead85bed016f8e28d18ae7662fbeb3298cb235
This commit is contained in:
@ -47,13 +47,15 @@ do_faultsim_test 2.1 -faults oom* -body {
|
||||
} -test {
|
||||
faultsim_test_result {0 {a.txt 1234567890}}
|
||||
}
|
||||
do_faultsim_test 2.2 -faults oom* -body {
|
||||
execsql {
|
||||
SELECT json_extract( zipfile_cds(z), '$.version-made-by' )
|
||||
FROM zipfile('test.zip')
|
||||
ifcapable json1 {
|
||||
do_faultsim_test 2.2 -faults oom* -body {
|
||||
execsql {
|
||||
SELECT json_extract( zipfile_cds(z), '$.version-made-by' )
|
||||
FROM zipfile('test.zip')
|
||||
}
|
||||
} -test {
|
||||
faultsim_test_result {0 798}
|
||||
}
|
||||
} -test {
|
||||
faultsim_test_result {0 798}
|
||||
}
|
||||
|
||||
forcedelete test.zip
|
||||
@ -162,4 +164,3 @@ do_faultsim_test 7.0 -faults oom* -prep {
|
||||
|
||||
|
||||
finish_test
|
||||
|
||||
|
Reference in New Issue
Block a user