Spinner Rangana Herath took 4-46 as Sri Lanka closed in on victory over Pakistan in the second Test in Colombo.
Dilruwan Perera's five wickets helped Sri Lanka stay in control of South Africa on day three of the second Test.
Sri Lanka tightened their grip on the second Test with South Africa on day two reduced the visitors to 98-3 at stumps.
Mahela Jayawardene's 34th Test century led Sri Lanka to 305-5 on day one of the second Test against South Africa.
Sri Lanka are pondering a change behind the stumps for the second Test against South Africa in Colombo.
©2017 Sky UK