fuzz: run rusqlite integrity check after each DML operation

This commit is contained in:
Jussi Saurio
2025-10-14 15:32:22 +03:00
parent 3465a01bf5
commit 495e66e12b

View File

@@ -2000,6 +2000,19 @@ mod tests {
"Different results after mutation! limbo: {limbo_rows:?}, sqlite: {sqlite_rows:?}, seed: {seed}, query: {query}",
);
// Run integrity check on limbo db using rusqlite
if let Err(e) = rusqlite_integrity_check(&limbo_db.path) {
println!("{table_def};");
for t in indexes.iter() {
println!("{t};");
}
for t in dml_statements.iter() {
println!("{t};");
}
println!("{query};");
panic!("seed: {seed}, error: {e}");
}
if sqlite_rows.is_empty() {
break;
}