File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -758,6 +758,8 @@ def test_synchronize_pair
758
758
759
759
class QueueTest < UMBaseTest
760
760
def test_push_pop_1
761
+ skip if !machine . respond_to? ( :synchronize )
762
+
761
763
q = UM ::Queue . new
762
764
assert_equal 0 , q . count
763
765
machine . push ( q , :foo )
@@ -771,6 +773,8 @@ def test_push_pop_1
771
773
end
772
774
773
775
def test_push_pop_2
776
+ skip if !machine . respond_to? ( :synchronize )
777
+
774
778
q = UM ::Queue . new
775
779
buf = [ ]
776
780
@@ -802,6 +806,8 @@ def test_push_pop_2
802
806
end
803
807
804
808
def test_push_pop_3
809
+ skip if !machine . respond_to? ( :synchronize )
810
+
805
811
q = UM ::Queue . new
806
812
buf = [ ]
807
813
@@ -828,6 +834,8 @@ def test_push_pop_3
828
834
end
829
835
830
836
def test_push_pop_4
837
+ skip if !machine . respond_to? ( :synchronize )
838
+
831
839
q = UM ::Queue . new
832
840
buf = [ ]
833
841
@@ -855,6 +863,8 @@ def test_push_pop_4
855
863
end
856
864
857
865
def test_push_shift_1
866
+ skip if !machine . respond_to? ( :synchronize )
867
+
858
868
q = UM ::Queue . new
859
869
860
870
machine . push ( q , :foo )
@@ -867,6 +877,8 @@ def test_push_shift_1
867
877
end
868
878
869
879
def test_shift_shift_1
880
+ skip if !machine . respond_to? ( :synchronize )
881
+
870
882
q = UM ::Queue . new
871
883
872
884
machine . unshift ( q , :foo )
You can’t perform that action at this time.
0 commit comments