Sri Lanka were on Saturday set a target of 370 to win the first Test after South Africa declared their second innings at the tea score of 206-6 on the fourth day.
The visitors had bowled out the home team for 292 after making 455-9 declared in their first innings.
AB de Villiers top-scored with 51 while Rangana Herath was the most successful bowler with figures of 4-79.
The second and final Test will be played in Colombo from July 24-28. – AFP