chiark / gitweb /
wdt-hand: New test case for ungrab-then-regrab (1)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 Apr 2021 11:27:29 +0000 (12:27 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Jul 2021 18:41:53 +0000 (19:41 +0100)
Check that we don't get a conflict.
This fails without the grab/regrab fix.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-hand.rs

index 1f15f4ce7f4cf0cb43ac0062724e9d531daa6955..9f4c32b247e576374c6c817c81e3d0b968d7dc6c 100644 (file)
@@ -258,8 +258,11 @@ impl Ctx {
 
       paused.resume()?;
 
-      w.synch()?;
-    }
+      let gen = w.synch()?;
+
+      let log = w.retrieve_log(gen)?;
+      assert_eq!( log.find_conflicts(), Vec::<String>::default() );
+    };
   }
 }