Fixing tests
Dependencies
- [2]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [3]
3YDPHBANaddress non-controversial clippy lints - [4]
GHO6DWPIRefactoring iterators - [5]
YN63NUZOSanakirja 1.0 - [6]
FXEDPLRIResurrecting tests, and type cleanup (no need for Arc<RwLock<…>> anymore) - [7]
BC3QS46OFix test compilation - [8]
CX2FTBQUFixing compilation errors in - [9]
I52XSRUHMassive cleanup, and simplification - [10]
TIPZ7UXNStarted fixing the tests for parallel record/output - [11]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [12]
55SCQOOHFixing the tests
Change contents
- replacement in libpijul/src/tests/unrecord.rs at line 271
if conflicts.len() != 1 {// Here in txn we have h1, we added h2 and unrecorded h2. No conflict.if !conflicts.is_empty() { - edit in libpijul/src/tests/unrecord.rs at line 275[2.258369]→[7.0:49](∅→∅),[7.49]→[8.0:79](∅→∅),[8.79]→[2.258473:258528](∅→∅),[2.258473]→[2.258473:258528](∅→∅)
match conflicts.iter().next().unwrap() {Conflict::ZombieFile { ref path, .. } => assert_eq!(path, "file"),ref c => panic!("c = {:#?}", c),} - edit in libpijul/src/tests/unrecord.rs at line 301
// Should fail: we're resurrecting a file in a directory that doesn't// exist any more. - edit in libpijul/src/tests/unrecord.rs at line 334
/*// We used to consider this a conflict, but now unrecording a file// deletion also resurrects its hierarchy. - edit in libpijul/src/tests/unrecord.rs at line 345
*/ - edit in libpijul/src/tests/performance.rs at line 124
{let txn = txn.read();let graph = &channel.read();let mut f = std::fs::File::create("before0").unwrap();crate::pristine::debug(&*txn, &txn.graph(&*graph), &mut f).unwrap();let graph = &channel2.read();let mut f = std::fs::File::create("before1").unwrap();crate::pristine::debug(&*txn, &txn.graph(&*graph), &mut f).unwrap();} - edit in libpijul/src/tests/performance.rs at line 153
{let txn = txn.read();let mut f = std::fs::File::create("after0").unwrap();crate::pristine::debug(&*txn, &txn.graph(&*graph), &mut f).unwrap();}