South Africa cricketer AB de Villiers (L) is watched by Sri Lankan wicketkeeper Dinesh Chandimal as he plays a shot during the fourth day of the opening Test match between Sri Lanka and South Africa at the Galle International Cricket Stadium in Galle on July 19, 2014. Picture: AFP.

SA set Sri Lanka 370 to win first test

A brisk half-century from AB de Villiers put South Africa in position to declare their second innings.