mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 13:58:55 +08:00 
			
		
		
		
	[ci skip] Make test_array_module fails without sanitizer
This commit is contained in:
		| @@ -170,8 +170,7 @@ mod test { | ||||
|     use Connection; | ||||
|  | ||||
|     #[test] | ||||
|     #[cfg_attr(rustfmt, rustfmt_skip)] | ||||
|     #[ignore] // RUSTFLAGS="-Z sanitizer=address" cargo test --lib --features "array" -- --ignored | ||||
|     #[ignore] // cargo test --lib --features "array" -- --ignored | ||||
|     fn test_array_module() { | ||||
|         let db = Connection::open_in_memory().unwrap(); | ||||
|         array::load_module(&db).unwrap(); | ||||
| @@ -179,6 +178,7 @@ mod test { | ||||
|         let v = vec![1i64, 2, 3, 4]; | ||||
|         let values = v.into_iter().map(|i| Value::from(i)).collect(); | ||||
|         let ptr = Rc::new(values); | ||||
|         { | ||||
|             let mut stmt = db.prepare("SELECT value from rarray(?);").unwrap(); | ||||
|  | ||||
|             let rows = stmt.query_map(&[&ptr], |row| row.get::<_, i64>(0)).unwrap(); | ||||
| @@ -189,6 +189,7 @@ mod test { | ||||
|                 count += 1; | ||||
|             } | ||||
|             assert_eq!(4, count); | ||||
|         } | ||||
|         assert_eq!(1, Rc::strong_count(&ptr)); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user