Skip to content

Commit

Permalink
added test refs #21, #15857
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Dec 4, 2024
1 parent 92d6b16 commit e3e93bd
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/sumo/lc_model/bugs/testsuite.sumo
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ ticket14587

# invalid cooperative changing ahead of roundabout
ticket15854

# deadlock with 3 vehicles
ticket15857
2 changes: 2 additions & 0 deletions tests/sumo/lc_model/bugs/ticket15857/errors.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Warning: Teleporting vehicle 'C'; waited too long (jam), lane='E0_1', time=301.00.
Warning: Vehicle 'C' ends teleporting on edge 'E1', time=301.00.
23 changes: 23 additions & 0 deletions tests/sumo/lc_model/bugs/ticket15857/input_routes.rou.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-04 14:59:54 by Eclipse SUMO netedit Version v1_21_0+1184-e80092bd906
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="longer" length="13"/>
<!-- Vehicles, persons and containers (sorted by depart) -->
<vehicle id="blocker" depart="0.00" departLane="1" departPos="-1.5">
<route edges="E0 E1"/>
<stop lane="E0_1" endPos="-1.5" duration="30"/>
</vehicle>

<vehicle id="A" depart="0.00" departPos="-1" type="longer">
<route edges="E0 E1"/>
</vehicle>
<vehicle id="B" depart="0.00" departPos="-16.2">
<route edges="E0 E1"/>
</vehicle>
<vehicle id="C" depart="0.00" departLane="1" departPos="-9.0">
<route edges="E0 E1"/>
</vehicle>
</routes>
57 changes: 57 additions & 0 deletions tests/sumo/lc_model/bugs/ticket15857/net.net.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-04 14:59:54 by Eclipse SUMO netedit Version v1_21_0+1184-e80092bd906
<neteditConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
<input>
<sumocfg-file value="/localdata/1/debug/15857/test.sumocfg"/>
<route-files value="/localdata/1/debug/15857/input_routes.rou.xml"/>
<sumo-net-file value="/localdata/1/debug/15857/net.net.xml"/>
</input>
<output>
<output-file value="/localdata/1/debug/15857/net.net.xml"/>
</output>
<processing>
<offset.disable-normalization value="true"/>
</processing>
<junctions>
<no-turnarounds value="true"/>
</junctions>
<netedit>
<new-network value="false"/>
</netedit>
</neteditConfiguration>
-->

<net version="1.20" junctionCornerDetail="5" limitTurnSpeed="5.50" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd">

<location netOffset="0.00,0.00" convBoundary="0.00,0.00,200.00,0.00" origBoundary="10000000000.00,10000000000.00,-10000000000.00,-10000000000.00" projParameter="!"/>

<edge id=":J1_0" function="internal">
<lane id=":J1_0_0" index="0" speed="13.89" length="8.00" shape="96.00,-1.60 104.00,-1.60"/>
</edge>

<edge id="E0" from="J0" to="J1" priority="-1">
<lane id="E0_0" index="0" speed="13.89" length="96.00" shape="0.00,-4.80 96.00,-4.80"/>
<lane id="E0_1" index="1" speed="13.89" length="96.00" shape="0.00,-1.60 96.00,-1.60"/>
</edge>
<edge id="E1" from="J1" to="J2" priority="-1">
<lane id="E1_0" index="0" speed="13.89" length="96.00" shape="104.00,-1.60 200.00,-1.60"/>
</edge>

<junction id="J0" type="dead_end" x="0.00" y="0.00" incLanes="" intLanes="" shape="0.00,0.00 0.00,-6.40"/>
<junction id="J1" type="priority" x="100.00" y="0.00" incLanes="E0_0 E0_1" intLanes=":J1_0_0" shape="104.00,0.00 104.00,-3.20 100.97,-4.03 99.03,-5.57 97.79,-6.16 96.00,-6.40 96.00,0.00">
<request index="0" response="0" foes="0" cont="0"/>
</junction>
<junction id="J2" type="dead_end" x="200.00" y="0.00" incLanes="E1_0" intLanes="" shape="200.00,-3.20 200.00,0.00"/>

<connection from="E0" to="E1" fromLane="1" toLane="0" via=":J1_0_0" dir="s" state="M"/>

<connection from=":J1_0" to="E1" fromLane="0" toLane="0" dir="s" state="M"/>

</net>
1 change: 1 addition & 0 deletions tests/sumo/lc_model/bugs/ticket15857/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--no-step-log --net-file=net.net.xml --routes=input_routes.rou.xml
Empty file.

0 comments on commit e3e93bd

Please sign in to comment.