COLOMBO (Reuters) - Sri Lanka require 153 runs for a series-levelling victory after Pakistan rode Azhar Ali's obdurate century before being all out for 329 on day four of the second test on Sunday.
Heavy rain washed out the entire final session, leaving Sri Lanka with three sessions on Monday to score those runs and go into the third and final test, starting on Friday, on equal terms.
Ali scored a painstaking 117 off 308 balls but Pakistan lost six second-innings wickets after lunch, the last five going for 28 runs at the P Sara Oval.
Dhammika Prasad (4-92), who initially bowled without much luck, was the pick of the Sri Lankan bowlers, while Dushmantha Chameera (3-53) also impressed.
Resuming on 171 for two, Ali led Pakistan's reply with a dour display of resolute batting despite losing senior batsmen Younus Khan (40) and captain Misbah-ul-Haq (22) in the morning session.
Sri Lanka skipper Angelo Mathews made the breakthrough when he induced Younus to edge a delivery behind and Prasad then trapped Misbah leg before. The Pakistan skipper reviewed the decision but could not get the verdict overturned.
Ali took 266 balls to bring up his ninth test century, a knock of unflattering strike rate as well as unwavering determination spread over eight-and-half hours.
He took two runs off Chameera and was celebrating his hundred even though the third umpire was still checking whether he had been run out by Mathews' direct throw from mid-off.
Ali was adjudged leg before to Prasad on 114 but the batsman reviewed the decision and got it overturned. He could only add three more runs before falling to spinner Rangana Herath.
Wahab Riaz (six) displayed no less grit, coming out to bat with a fractured hand and was the last Pakistani batsman to be out.
Riaz, who was hit on the left glove by a Chameera bouncer in the first innings, will miss the third test and is doubtful for the five-match one-day series that follows.