Durham 275 (Latham 147, Higgins 3-41) and 35 for 0 need a further 305 to beat Gloucestershire 362 and 252 (Noema-Barnett 69*, Stokes 3-66)
Ben Stokes completed match figures of 8 for 118 as Gloucestershire set Durham 340 to win the Specsavers County Championship match at Cheltenham. The allrounder pressed claims for an England Test place against India with another lively contribution, looking in good rhythm as he finished with 3 for 66 in the home side's second innings of 252 all out.
Kieran Noema-Barnett hit an undefeated 69, while Ryan Higgins added 42 to his first-innings century and Benny Howell made 43 against an attack again deprived of Mark Wood because of a sore heel.
Durham coach Jon Lewis was able to give a detailed update on Wood's injury. "Mark has been for a scan today and we will know more when we get the results," Lewis said. "It's a strange one and it could be something and nothing.
"Mark goes 12 months without injury through being carefully managed, then bowls six overs in this game with no apparent problem, only to start feeling something towards the area of his heel. It is nothing to do with his past ankle problems and the symptoms are not that of a bruised heel. We are hopeful it will settle down quickly."
Tom Latham had been last man out for 147 as Durham extended their first-innings total from an overnight 219 for 5 to 275 all out, but could not prevent his team trailing by 87. By the close the visitors had moved to 35 without loss in their second innings without undue alarm and required a further 305 for victory.
Latham began the day on 120 and again looked solid as wickets tumbled around him. Gloucestershire took the second new ball with the total 227 for 5, and Stuart Poynter was soon bowled playing forward to Craig Miles for 32.
A key moment came, with Durham 252 for 7, when Wood, on 11, called Latham for a suicidal single to Matt Taylor at mid-off and was run out well short of his ground by a direct hit at the bowler's end.
Matt Salisbury and George Harding fell to successive balls from Higgins and Latham's vigil of six hours and 13 minutes finally came to an end in a bid to add quick runs before the final wicket went down. Durham's stand-in skipper had faced 281 balls, hitting 22 fours, in energy-sapping heat when he lofted a catch to deep midwicket.
Chris Rushworth then built on Latham's efforts by striking two quick blows with the new ball at the start of Gloucestershire's second innings, removing Miles Hammond and James Bracey cheaply as they reached lunch on 50 for 2, leading by 137.
Howell and Chris Dent had steadied the ship and extended their stand to 70 after the interval before Howell was taken at second slip off Salisbury, having hit seven fours. From 85 for 2, Gloucestershire slipped to 86 for 5 as Stokes had Gareth Roderick caught behind for a duck with an example of the extra lift he extracted from the pitch and Dent, on 32, nicked Salisbury through to wicketkeeper Poynter.
Noema-Barnett walked out at No. 7 to face two bowlers with their tails up. But in his own unflappable style he doused the fire and found an in-form partner in Higgins as they turned the tide with a partnership of 84.
It took the introduction of Will Smith to break the stand. The offspinner held onto a sharp return catch to send back Higgins with the score on 170 for 6. Noema-Barnett pulled Stokes for six on his way to an invaluable 96-ball half-century and useful contributions from Miles and last man George Drissell helped Gloucestershire set a challenging target.