1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-01-06 08:01:16 +03:00

Add a couple of OOM tests.

FossilOrigin-Name: 50de2a0d2d96b6b5b8de7ac6277d60859a8d9a56f6a792950734386bb9f10b79
This commit is contained in:
dan
2018-07-09 18:11:52 +00:00
parent 7999cc434e
commit e6fcd1d5de
3 changed files with 31 additions and 8 deletions

View File

@@ -139,5 +139,28 @@ do_faultsim_test 6 -faults oom-* -prep {
faultsim_test_result {0 {0.0 1.0 0.0 1.0 0.0 1.0}}
}
do_faultsim_test 7 -faults oom-* -prep {
faultsim_restore_and_reopen
} -body {
execsql {
SELECT percent_rank() OVER (), cume_dist() OVER () FROM t1
}
} -test {
faultsim_test_result {0 {0.0 1.0 0.0 1.0 0.0 1.0}}
}
do_faultsim_test 8 -faults oom-t* -prep {
faultsim_restore_and_reopen
} -body {
execsql {
SELECT a, sum(b) OVER win1 FROM t1
WINDOW win1 AS (PARTITION BY a ),
win2 AS (PARTITION BY b )
ORDER BY a;
}
} -test {
faultsim_test_result {0 {1 2 5 6 9 10}}
}
finish_test