Sha256: d5127598572528bdc70a420f21d62716bca4f0c3d06905778f9ec76b7c6f4d64

Contents?: true

Size: 1.01 KB

Versions: 9

Compression:

Stored size: 1.01 KB

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#

require 'flowtestbase'
require 'openwfe/def'

include OpenWFE



class FlowTest39b < Test::Unit::TestCase
    include FlowTestBase

    #def setup
    #end

    #def teardown
    #end

    #
    # Test 0
    #

    class TestReserve39b0 < ProcessDefinition
        #
        # doesn't prove it enough though...
        #
        concurrence do
            reserve :mutex => :toto, :frequency => "500" do
                sequence do
                    test_alpha
                    test_bravo
                end
            end
            reserve :mutex => :toto, :frequency => "500" do
                sequence do
                    test_charly
                    test_delta
                end
            end
        end
    end

    def test_2

        dotest(
            TestReserve39b0, 
            [
"""
test-charly
test-delta
test-alpha
test-bravo
""".strip, 
"""
test-alpha
test-bravo
test-charly
test-delta
""".strip 
            ],
            3)
    end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
openwferu-0.9.10 test/ft_39b_reserve.rb
openwferu-0.9.10.653 test/ft_39b_reserve.rb
openwferu-0.9.11 test/ft_39b_reserve.rb
openwferu-0.9.12 test/ft_39b_reserve.rb
openwferu-0.9.12.863 test/ft_39b_reserve.rb
openwferu-0.9.13 test/ft_39b_reserve.rb
openwferu-0.9.14 test/ft_39b_reserve.rb
openwferu-0.9.15 test/ft_39b_reserve.rb
openwferu-0.9.16 test/ft_39b_reserve.rb