Author: eelco
Date: 2010-06-09 13:46:18 +0000 (Wed, 09 Jun 2010)
New Revision: 22199

You can view the changes in this commit at:
   https://svn.nixos.org/viewvc/nix?rev=22199&view=rev

Modified:
   nixos/branches/boot-order/tests/nfs.nix

Log:
* Test whether clients release their locks when they reboot.


Changes:

Modified: nixos/branches/boot-order/tests/nfs.nix
===================================================================
--- nixos/branches/boot-order/tests/nfs.nix     2010-06-09 13:45:51 UTC (rev 
22198)
+++ nixos/branches/boot-order/tests/nfs.nix     2010-06-09 13:46:18 UTC (rev 
22199)
@@ -58,6 +58,12 @@
       $client1->succeed("flock -x /data/lock -c 'touch locked; sleep 100000' 
&");
       $client1->waitForFile("locked");
       $client2->fail("flock -n -s /data/lock true");
+
+      # Test whether client 2 obtains the lock if we reset client 1.
+      $client2->succeed("flock -s /data/lock -c 'echo acquired; touch locked' 
>&2 &");
+      $client1->crash;
+      $client1->start;
+      $client2->waitForFile("locked");
     '';
 
 }

_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to