Sri Lanka were dismissed for a dreadful 42 after 14 overs in their first Test against South Africa in Durban.