Tunisia and Angola qualified for the African Cup of Nations quarter-finals, with South Africa and Senegal going out.
A 0-0 stalemate between Tunisia and Angola rendered Thursday's other match between South Africa and Senegal meaningless, as both needed to win and hope for a decisive result in Tamale to have any chance of progressing.
It means that the Tunisians will face Cameroon in the last eight, while Angola, who are through to the quarters for the first time ever, will now play reigning champions Egypt.
slotted home
The drab draw played out by the top two left them level on points, but Tunisia finish top of the pile by virtue of having scored a goal more during the group stage.
In Kumasi, Elrio van Heerden (14) was left alone to volley South Africa into an early lead before West Ham United loanee Henri Camara (37) slotted home
to level the match for Senegal after a mistake by Blackburn Rover's Aaron Mokoena. It ended 1-1.