Santi Cazorla and Juanfran were on target as Spain laboured to a 2-1 friendly victory over Equatorial Guinea.
The world champions dominated the majority of the game in Malabo on Saturday but were wasteful in front of goal, with substitute Fernando Llorente particularly guilty.
Andoni Goikoetxea's charges briefly threatened a shock draw when Jimmy Bermudez cancelled out Arsenal midfielder Cazorla's opener, but Juanfran's winner spared Spain's blushes.
Spain produced the best openings of the first half and Jesus Navas' lob almost put the visitors ahead efore Cazorla capitalised on a mistake from Danilo.
Equatorial Guinea equalised through Bermudez's header, but the sides were level for just seven minutes as Juanfran thrashed home from close range.
Spain had several opportunities to increase the lead and Llorente thought he had added a third, only for Andres Iniesta to be ruled offside in the build-up.
Vicente del Bosque took the opportunity to rest several of his star players and handed a debut to Marc Bartra, while Ivan Bolado was given the role as Equatorial Guinea's lone striker.
The visitors dominated first-half possession and were nearly ahead as early as the seventh minute when Navas' inventive chip almost dipped over Danilo.
Spain were duly rewarded for their pressure six minutes later, when Danilo dropped a straight-forward cross from Juan Mata and Cazorla profiting from the gaffe as he tapped into the empty net.
Equatorial Guinea had their first sight of goal after 35 minutes when Rodolfo Bodipo met Javier Balboa's centre, but his strike was deflected over the crossbar.
And from the resulting corner the home fans were sent into delirium when Bermudez levelled by rising highest to head home Juvenal Edjogo's delivery.
However, their joy was short-lived as three minutes before the break Cazorla's cross deflected into the path of Juanfran and he rifled home from close range.
Llorente was introduced as a second-half substitute and will feel he could have done better after 54 minutes when he shot tamely at Danilo from Navas' cushioned header.
The Juventus striker did have the ball in the back of the net on the hour-mark when he tapped home Iniesta's centre, but the Barcelona midfielder was harshly adjudged to be offside in the build-up.
Spain's dominance continued and Llorente missed another clear opportunity with a weak back-post header from Navas' deft cross with 20 minutes remaining.
Several substitutions in the close stages stemmed the flow of the match, as Spain comfortably saw out the victory.
|Coach: Andoni Goikoetxea|
for Iván Bolado 46'
for Fidjeu 61'
for Doualla 82'
for Javier Balboa 86'
for Juvenal 89'
|Del Bosque to resign from Spain role|
|Giggs can be a manager in his own right, insists Round|
|Euro 2016 Diary: Wails for Bale, a grumpy water carrier and the inevitable return of Will Grigg|
|Manchester United agree Galatasaray friendly|
|Hazard must bloom into bona-fide superstar as Eden project comes full circle|
|Hazard excited by ´world class´ Ibrahimovic in the Premier League|
|Hazard determined to make his mark on Lille return|
|Special One and Zlatan: United´s match made in heaven or gamble from hell?|
|Vertonghen to miss rest of Euro 2016 due to torn ankle ligaments|
|Conte has helped me a lot, admits grateful De Sciglio|
|Juve pay tribute to departing Caceres|
|Williams banking on ´band of brothers´ to stop Hazard|
|No lack of desire with England - Lampard|
|Germany v Italy: Kroos calls on Khedira knowledge for Azzurri test|
|Coleman welcomes pressure of ´biggest game since 1958´|
|Ibrahimovic claims he will join Manchester United|
|Sevilla receive ´big offer´ for Krychowiak|
|Bartra seeks to justify Dortmund´s trust|
|Montella vows to bring the good times back to AC Milan|
|Bournemouth bring in striker Mousset|
|Barca confirm Umtiti fee agreed|
|Puel takes charge at Southampton|
|Hulk completes €55.8m Shanghai SIPG switch|
|Bruce focused on Hull and pursuing transfer targets|
|Sinclair agrees Watford move|
|Janssen wants AZ to accept Spurs offer|
|Bartomeu claims five-year Neymar deal imminent|
|Reluctant father figure Evra defends Pogba|
|Boateng declares himself fit to face Italy|
|73 goals, 44 assists: The stats that show why Man Utd want Ibrahimovic and Mkhitaryan|
|Conte has made Italy proud again – Vieri|
|Evra pledges to respect Iceland after England shock|
|Vrba leaves Czech Republic for Anzhi|
|Bernstein backs Allardyce for England job|
|Rodgers rejects England talk|
|Klose lauds ´unbelievable´ Italy|
|Muller confident Italy´s defence can be breached|
|´Lineker does not know what he is talking about´ - Raiola defends Pogba|
|Morrison opts to stay with West Brom|
|Kempes expects Messi to return to international football|
|´Leave Messi alone!´ - Maradona|
|Evra suffers training injury|
|Iceland´s Viking chant terrified England - Shilton|
|Ballack doubts Italy can repeat Spain performance|
|Caparros hoping Del Bosque continues as Spain coach|
|Falcao targeting Ligue 1 top scorer award|
|Maradona: England continue to be over-hyped|
|Santos: You talk about Ronaldo because he is great|
|James Rodriguez is an ´average player´ - Stoichkov|
|Mooy moves from Melbourne to Manchester City|
|Copa America champions Chile set to face Euro 2016 winner|
|Guardiola ´relaxed´ ahead of renewing Mourinho rivalry|
|Simeone on post-Champions League final comments: I spoke heatedly|
|Skrtel pins blame on friend after Klopp ´d***´ slur|
|Euro 2016 Diary: Medals for Irish fans and Blaszczykowski inspires Wimbledon triumph|
|Bale is slightly better than Hazard, admits Lukaku|
|Argentina make Simeone approach, jokes Atleti president|
|Mamelodi Sundowns 2 Enyimba 1: Arendse nets winner in Group B clash|
|Wilmots confirms Batshuayi medical ahead of expected Chelsea switch|
|Santos insists no favourite in Portugal-Poland tie despite Ronaldo presence|
|Celtic is the best place for me to be, insists Dembele|
|Lagerback: I don´t think I will take a job like England|
|Umtiti has ´exclusive agreement´ to join Barcelona|
|Milik putting Ronaldo worship to one side for 90 minutes|
|Only losers make excuses, insists Florenzi|
|Nawalka: We must not focus solely on Ronaldo|
|Hamsik: Bayern offer reports are nonsense|
|Injured De Rossi a major doubt to face Germany|
|Wales will not be a stepping stone for Belgium - Bale|
|Lyon add Nkoulou as Barcelona close in on Umtiti|
|Neymar, Rafinha and Douglas Costa named in Brazil´s Olympics squad|
|Goalless Lewandowski should look to Ronaldo for inspiration|
|Mane has cost Liverpool far too much - Thompson|
|Bilic not interested in England job, says Gold|
|Hummels hopes Gomez can break through impressive Italy defence|
|Gerrard: England gripped by a ´culture of fear´|
|Bournemouth sign Chelsea´s Ake on season-long loan|
|Iceland emulating Leicester City would delight Hallgrimsson|
|Chelsea could still sign Pato permanently, says agent|
|Wales v Belgium: Wilmots will not man-mark Bale in quarter-final clash|
|Genoa seal Ocampos capture|
|Fuchs retires from Austria duty|
|Bundesliga fixtures: Bayern begin title defence against Werder Bremen|
|Bordeaux complete Toulalan signing|
|Suarez confident Messi will return for Argentina|
|´England players did not know what to do´ - Lineker critical of Hodgson|
|Dybala turned down ´€80m Barcelona move´|
|Emery a big loss for Sevilla, says Baptista|
|Valencia: ICC derby more than a friendly|
|Defoe: Allardyce ready for England|
|Wales defend celebrations after England´s Euro 2016 elimination|
|Rooney: Next England manager doesn´t have to be English|
|Mascherano set for Barca stay|
|Carragher suggests Klinsmann as England boss, dismisses Shearer|
|Glik confirms Monaco move|
|Australia to face Japan in Melbourne|
|Galliani: Montella gives Milan a fresh start|
|We must take care of Messi - Argentina president|
|England players ´babies´ and soft - Carragher|
|Higuain unlikely to renew Napoli contract - agent|
|Hart: Tough job for next England boss|
|Nani to join Valencia, confirms Fener president|
|Glenn: Man, woman or caretaker for England|
|Skrtel´s Fenerbahce move ´almost done´|
|Al Ahly 1 ASEC Mimosas 2: Jol´s men beaten again|