Skip to content

Commit

Permalink
Fix "Error: write after end" and removed @bug tags
Browse files Browse the repository at this point in the history
https://nodejs.org/api/child_process.html#child_process_event_exit
Note that when the 'exit' event is triggered, child process stdio streams might still be open.
  • Loading branch information
oxidase committed Sep 20, 2016
1 parent 7d124ce commit 3eac6ef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions features/guidance/advanced-lanes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Feature: Turn Lane Guidance
| a,j | in,turn,other,other | depart,turn right,turn left,arrive | ,,left:true right:false, |
| a,i | in,turn,other,other | depart,turn right,turn right,arrive | ,,left:false right:true, |

@todo @bug @2654 @none
@todo @2654 @none
#https://github.com/Project-OSRM/osrm-backend/issues/2645
#http://www.openstreetmap.org/export#map=19/52.56054/13.32152
Scenario: Kurt-Schuhmacher-Damm
Expand Down Expand Up @@ -131,7 +131,7 @@ Feature: Turn Lane Guidance
| a,f | ,ksd,ksd | depart,turn left,arrive | ,left:true none:true right:false, |
| a,i | ,ksd,ksd | depart,turn right,arrive | ,left:false none:true right:true, |

@todo @bug @2650 @sliproads
@todo @2650 @sliproads
#market and haight in SF, restricted turn
#http://www.openstreetmap.org/#map=19/37.77308/-122.42238
Scenario: Market/Haight without Through Street
Expand Down Expand Up @@ -177,7 +177,7 @@ Feature: Turn Lane Guidance
| a,j | ghough,market,market | depart,turn left,arrive | ,none:true straight:false straight:false straight:false, |
| a,f | ghough,ghough,ghough | depart,continue slight left,arrive | ,none:true straight:true straight:false straight:false, |

@todo @2650 @bug @sliproads
@todo @2650 @sliproads
#market and haight in SF, unrestricted
#http://www.openstreetmap.org/#map=19/37.77308/-122.42238
Scenario: Market/Haight without Through Street
Expand Down
15 changes: 7 additions & 8 deletions features/guidance/turn-lanes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ Feature: Turn Lane Guidance
| a,c | road,road | depart,arrive | , |

# This tests whether empty/invalid PSV tags cause osrm-extract to crash
@bug
Scenario: Turn with Bus-Lane
Given the node map
| a | | b | | c |
Expand Down Expand Up @@ -181,7 +180,7 @@ Feature: Turn Lane Guidance
| a,c | road,road | depart,arrive |

#turn lanes are often drawn at the incoming road, even though the actual turn requires crossing the intersection first
@todo @bug @collapse @partition-lanes
@todo @collapse @partition-lanes
Scenario: Turn Lanes at Segregated Road
Given the node map
| | | i | l | | |
Expand Down Expand Up @@ -383,7 +382,7 @@ Feature: Turn Lane Guidance
| a,f | road,turn,turn | depart,turn left,arrive | ,left:true right:false, |
| a,g | road,right,right | depart,turn right,arrive | ,left:false right:true, |

@todo @bug @partition-lanes @previous-lanes
@todo @partition-lanes @previous-lanes
Scenario: Narrowing Turn Lanes
Given the node map
| | | | | g | |
Expand Down Expand Up @@ -428,7 +427,7 @@ Feature: Turn Lane Guidance
| a,d | road,road | depart,arrive | , |
| a,e | road,turn,turn | depart,turn right,arrive | ,straight:false right:true, |

@bug @todo @roundabout
@todo @roundabout
Scenario: Theodor Heuss Platz
Given the node map
| | | | i | o | | | l | |
Expand Down Expand Up @@ -555,7 +554,7 @@ Feature: Turn Lane Guidance
| a,e | road,road,road | depart,turn uturn,arrive | ,left:true left:false left:false straight:false straight:false, |
| a,g | road,straight,straight | depart,new name straight,arrive | ,left:false left:false left:false straight:true straight:true, |

@bug @todo @roundabout
@todo @roundabout
Scenario: Passing Through a Roundabout
Given the node map
| | | h | | g | | |
Expand Down Expand Up @@ -864,7 +863,7 @@ Feature: Turn Lane Guidance
| a,c | ab,bc,bc | depart,turn left,arrive | ,left:true right:false, |

# http://www.openstreetmap.org/#map=19/47.97685/7.82933&layers=D
@bug @todo
@todo
Scenario: Lane Parsing Issue #2706: None Assignments I
Given the node map
| | f | | | j | |
Expand Down Expand Up @@ -904,7 +903,7 @@ Feature: Turn Lane Guidance
# Note: at the moment we don't care about routes, we care about the extract process triggering assertions

# https://www.openstreetmap.org/#map=19/47.99257/7.83276&layers=D
@bug @todo
@todo
Scenario: Lane Parsing Issue #2706: None Assignments II
Given the node map
| | k | l | |
Expand Down Expand Up @@ -939,7 +938,7 @@ Feature: Turn Lane Guidance
| i,e ||||
# Note: at the moment we don't care about routes, we care about the extract process triggering assertions

@bug @todo
@todo
Scenario: Lane Parsing Issue #2706: None Assignments III - Minimal reproduction recipe
Given the node map
| | | l | |
Expand Down
2 changes: 1 addition & 1 deletion features/support/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = function () {
// with lots of log output
let child = child_process.execFile(cmd, opts, {maxBuffer: 1024 * 1024 * 1000, env: env}, callback);
child.on('exit', function(code) {
log.end(util.format('*** %s exited with code %d\n', bin, code));
log.write(util.format('*** %s exited with code %d\n', bin, code));
}.bind(this));
this.setupOutputLog(child, log);
return child;
Expand Down

0 comments on commit 3eac6ef

Please sign in to comment.