Alex Neil’s side opened the scoring on the stroke of half-time when Jack Clarke was fouled in the penalty area and Ross Stewart converted the subsequent spot kick.
The hosts drew level just after the hour mark when Bailey Wright conceded a penalty and Sean McConville sent Anthony Patterson the wrong way, before substitute Kodede Adedoyin made it 2-1.
The Black Cats have one more friendly ahead of their Championship opener against Coventry next weekend, with the team set to travel to Hartlepool on Monday.
Here’s how our chief Sunderland writer Phil Smith rated each Black Cats player at the Wham Stadium:

9. Alex Pritchard - 6
Came through some crunching early challenges to impress in the first half, but one of many who struggled to get on the ball in the final third late on. 6 Photo: Frank Reid

10. Jack Clarke - 6
Looked a real threat after a slow start and showed good quality to gather Roberts’ pass and draw the penalty for the opener. Will feel he could have made more from a couple of good chances early in the second half. 6 Photo: National World

11. Ross Stewart - 6
Deserved his penalty for a really bright first half showing, his intelligent running off the last defender creating constant opportunities for his team. Didn’t get into it in the second. 6 Photo: Frank Reid

12. Luke O’Nien (sub) - 5
Struggled to get up to the pace of the game after replacing Gooch at right back, with one loose pass in the build-up to the Accrington’s second. Sunderland struggled defending set pieces in the latter stages, the winner coming from a long throw. 5 Photo: Frank Reid

