test/ft_39b_reserve.rb in openwferu-0.9.16 vs test/ft_39b_reserve.rb in openwferu-0.9.17
- old
+ new
@@ -28,27 +28,29 @@
class TestReserve39b0 < ProcessDefinition
#
# doesn't prove it enough though...
#
concurrence do
- reserve :mutex => :toto, :frequency => "500" do
+ reserve :mutex => :toto do
sequence do
test_alpha
test_bravo
end
end
- reserve :mutex => :toto, :frequency => "500" do
+ reserve :mutex => :toto do
sequence do
test_charly
test_delta
end
end
end
end
- def test_2
+ def test_0
+ #log_level_to_debug
+
dotest(
TestReserve39b0,
[
"""
test-charly
@@ -60,11 +62,38 @@
test-alpha
test-bravo
test-charly
test-delta
""".strip
- ],
- 3)
+ ])
+ end
+
+ #
+ # Test 1
+ #
+
+ class TestReserve39b1 < ProcessDefinition
+ concurrence do
+ reserve :mutex => :toto do
+ test_b
+ end
+ sequence do
+ reserve :mutex => :toto do
+ test_c
+ end
+ reserve :mutex => :toto do
+ test_d
+ end
+ end
+ end
+ end
+
+ def test_1
+
+ dotest TestReserve39b1, "test-b\ntest-c\ntest-d"
+ #
+ # currently the only combination produced, could change
+ # with later versions of Ruby...
end
end