test/rbbt/util/test_persistence.rb in rbbt-util-3.0.3 vs test/rbbt/util/test_persistence.rb in rbbt-util-3.1.0

- old
+ new

@@ -150,7 +150,20 @@ assert Dir.glob(Rbbt.tmp.test.persistence.find + '*').length == 1 assert_equal "Test", string end + def test_non_blocking + $a = TSV.new test_datafile('test.tsv'), :persistence => true, :persistence_dir => Rbbt.tmp.test.persistence + $a.data.read + + pid = Process.fork do + $b = TSV.new test_datafile('test.tsv'), :persistence => true, :persistence_dir => Rbbt.tmp.test.persistence + $b.data.close + end + + Process.wait pid + end + + end