Two second-half goals from David Villa secured a 2-0 win for Spain over El Salvador in their final World Cup warm-up clash on Saturday.
Spain's record goalscorer and recent New York City acquisition was required to spare his country's blushes as they were forced to work hard at FedEx Field in Maryland on Saturday.
Cesc Fabregas' penalty woes at international level continued as he spurned a spot-kick early on in what proved to be a frustrating goalless first half for the world and European champions.
However, substitute Villa opened the scoring 15 minutes into the second half when he fired home Sergio Ramos' headed knockdown into an empty net.
He then added a second two minutes from time to cap off a positive outing for Spain, who were given a stern test of their offensive capabilities.
Despite recent injury problems, Diego Costa came through 74 minutes unscathed to boost Vicente Del Bosque's side of their World Cup opener against the Netherlands on Friday.
Fabregas wasted a glorious opportunity to open the scoring from the penalty spot after just four minutes following a foul on Costa by goalkeeper Derby Carrillo inside the area.
However, the Barcelona man sidefooted his penalty over the crossbar as he missed a third spot-kick in normal time for his country.
Carrillo was busy early on - first thwarting Pedro with a good save one-on-one before keeping a speculative long-range drive from Ramos out.
Del Bosque's men continued to probe but, for all their dominance, they were frustrated by a resilient El Salvador back line.
Spain were given a scare when Jordi Alba went off for treatment following a strong challenge, although he was able to return to action soon afterwards.
Alexander Larin then had El Salvador's first attempt on goal - a free-kick from well outside Spain's penalty area that went high and wide - before Spain resumed their near-complete control of possession.
Despite plenty of intent, Spain's deft lobbed passes and slick movement failed to yield a breakthrough before the interval, with Del Bosque opting to replace Fabregas, Andres Iniesta and Pedro with Villa, Santi Cazorla and David Silva.
The latter produced a strong run shortly after the break but saw his shot blocked, before Villa was denied by Carrillo at close range.
However, the experienced Villa was on hand just before the hour to capitalise on Ramos' knockdown and finish well into an open goal.
Sergio Busquets was unfortunate not to add to Spain's tally when his long-range strike hit the crossbar, but Villa did finally add gloss to a hard-fought win when he slotted home Silva's cross following a clever turn late on.
|Coach: Albert Roca|
for K. Santamaría 57'
for A. Álvarez 65'
for A. Flores 75'
for R. Menjívar 83'
for J. Barrios 87'
|Ronaldo rested for Copa clash|
|Sanchis implies Neymar provoked Isco kick|
|Benitez: I have no problem with James|
|Luis Enrique plays down Suarez Ballon d´Or omission|
|Sergio Ramos is right - football is cyclical, says Luis Enrique|
|Klopp defends Mignolet amid Ter Stegen rumours|
|Boksic backs Mandzukic to get 20 goals for Juve|
|Neymar hails ´great friends´ Messi and Suarez|
|Chelsea submit planning application for new stadium|
|French sports people need to be exemplary - Valls|
|Moyes: Valencia job has come too soon for Neville|
|Napoli loss ´doesn´t change anything´ for Mancini|
|Ronaldo ´uncomfortable´ as a number nine, claims Madrid great Sanchez|
|Manchester City receive $400m Chinese investment|
|Messi: Ronaldo deserves Ballon d´Or nomination, but I´d prefer Suarez|
|Moyes open to another European gig|
|Everton welcome cup pressure - Martinez|
|Casillas open to MLS move|
|Hughes: Butland going nowhere|
|Milner eyes trophies at ´exciting´ Liverpool|
|Napoli became anxious - Sarri|
|Inter did not deserve to lose - Mancini|
|Messi beats Ronaldo to top prize at La Liga awards|
|Bolton Wanderers 1 Brentford 1: Smith watches on as strugglers snatch point|
|Napoli 2 Inter 1: Higuain at the double as hosts go top|
|Lewandowski: Less pressure on me than Aubameyang|
|Defoe, Larsson to miss Arsenal match|
|Sassuolo 1 Fiorentina 1: Di Francesco´s side extend unbeaten home run|
|Barcelona took ´a step forward´ without Messi - Busquets|
|Unfair to blame Garcia for Roma form - Zanetti|
|Southampton v Liverpool: Returning stars have Ibe in buoyant mood|
|Lewandowski´s five-goal haul recognised for four records|
|Barcelona v Villanovense: Holders get second crack at minnows|
|Verona sack Mandorlini|
|Valencia confirm Nuno departure|
|Premier League clubs reveal agent fees|
|Stoke will not underestimate Sheffield Wednesday – Hughes|
|Robben wants Guardiola to stay at Bayern|
|Aguero allays foot injury concerns|
|Cadiz v Real Madrid: Pepe calls for hard work in Andalusia|
|Bolton confirm players have not been paid for November|
|Neville takes Valencia training following Nuno resignation|
|Mihajlovic targets Coppa Italia triumph|
|Garde confident Villa will survive|
|Everton to make late call on Barry and McCarthy|
|Davids: Messi is an anomaly but Ronaldo just an athlete|
|Simeone open to January signings following Tiago injury|
|Messi leads nominees for Puskas Award|
|Hummels defends himself after media criticism|
|Messi, Ronaldo and Neymar nominated for Ballon d´Or|
|Luis Enrique, Guardiola and Sampaoli up for World Coach of the Year|
|Chelsea about the team, not just Costa - Ivanovic|
|Kuyt open to Feyenoord extension|
|Barcelona lodge complaint over ex-Madrid duo´s Neymar comments|
|Davies wants Manchester City quarter-final to get crazy|
|Ribery ordeal is over – Rummenigge|
|Smalling: Vardy run opens door to non-League hopefuls|
|Bender relieved to end Dortmund losing streak|
|Mata: Manchester United have six finals in December|
|Vardy reveals painful road to Premier League record|
|Pardew urges Newcastle to back McClaren|
|Russian clubs banned from signing Turkish players|
|Klopp expects Coutinho to face Southampton|
|Valverde: Let´s hope Barcelona don´t sign Aduriz|
|De Bruyne relishing link-up with Silva|
|´Crazy´ Munich could convince Guardiola to stay|
|Defiant Garcia refuses to resign despite Roma slump|
|Monk confident Swansea can turn the corner|
|Bellerin: Arsenal can cope without Sanchez|
|McClaren: Newcastle not panicking|
|Klopp delighted with Sturridge, Henderson returns|
|I wouldn´t swap Lukaku for Vardy - Martinez|
|MLS Review: Timbers, Crew to meet in final|
|Nuno saddened by Valencia departure|
|Morata will become a key player - Allegri|
|Serie A Review: Juve revival continues as Roma stutter|
|Ligue 1 Review: Marseille and Monaco share thriller as Caen go second|
|Nuno resigns from Valencia post|
|Palermo 0 Juventus 3: Four Serie A wins in a row for improving champions|
|Neymar: ´MSN´ should be Ballon d´Or final three|
|Madrid must ´give everything in each match´ - Navas|
|´I take full responsibility´ - Monk|
|Neil hails Grabban display after Arsenal draw|
|Arsenal will survive ´bad spell´ - Wenger|
|Klopp proud of ´perfect´ Liverpool win|
|Bundesliga Review: Aubameyang at the double for Dortmund, Leverkusen draw with Schalke|
|Wenger: I nearly rested Sanchez|
|Ronaldo did well, insists Benitez|
|Liverpool 1 Swansea City 0: Milner spot on again as Henderson and Sturridge return|
|Norwich City 1 Arsenal 1: Sanchez, Koscielny limp off as Gunners are held|
|Bilic worried about Sakho muscle injury|
|Angers v PSG: Kurzawa wants unbeaten season|
|Tuchel relieved to see Borussia Dortmund return to winning ways|
|Pulis ´disappointed´ with free-kick decision|
|Manchester City v Hull City: Wounded Tigers must avoid ´a pasting´, warns Davies|
|Reus Deportiu v Atletico Madrid: Simeone´s side face in-form underdogs|
|West Ham needed a second goal - Bilic|
|Deila slams Stokes following Twitter outburst|
|Eibar 0 Real Madrid 2: Bale and Ronaldo on target|
|Borussia Dortmund 4 Stuttgart 1: Aubameyang double hands Kramny a losing start|
|Chelsea performance enthuses Mourinho|
|Mourinho: Costa wouldn´t use a bib to hurt me!|
|Chelsea felt like ´a small team´ to Tottenham - Pochettino|
|West Ham 1 West Brom 1: Reid own goal steals point for Pulis´ men|
|´Impossible´ to compare Icardi and Higuain - Mancini|
|Stoke City v Sheffield Wednesday: Visitors are clear underdogs, claims Carvalhal|
|´It was pretty embarrassing´ - Colback slams Newcastle|
|Pochettino lauds his Tottenham players as ´heroes´|
|Mourinho denies Diego Costa rift|
|Hazard rues ´beautiful´ Lloris save|
|Inverness Caledonian Thistle 1 Celtic 3: Champions triumph despite Stokes storm|
|Inter playing to their strengths - Sarri|
|Tottenham 0 Chelsea 0: Pochettino´s side set record unbeaten run|
|Middlesbrough v Everton: Barry aiming to bounce back|
|AC Milan v Crotone: Mihajlovic targets four wins from four before mid-season break|
|Galliani: Milan refused to sell Niang|
|Premier League loan move unlikely for Drogba|
|Fekir dreams of Barcelona move and Ballon d´Or|
|Inter will not be criticised if they win the Scudetto - Prandelli|
|Newcastle fans right to be angry - McClaren|
|Ghoulam: Napoli-Inter not decisive in Scudetto race|
|Tiago out for at least three months|
|Monk: Klopp must make Liverpool title contenders|
|Lahm praises Bayern for adapting to injuries|
|Central Coast Mariners 0 Western Sydney Wanderers 2: Visitors win fifth straight|
|Arsenal building to title challenge - Mertesacker|
|Henry: Premier League title a five-horse race|
|Olsson urges Ibrahimovic to make Premier League move|
|Niang delighted with first Serie A goals|
|Wenger backs Campbell to earn spot|
|Much more to come from Firmino - Klopp|
|Kane dreaming of Premier League title win|
|Neymar´s evolution has been startling - Dani Alves|
|Van Gaal explains Lingard, Rojo absences|
|Messi number one regardless of goals - Iniesta|
|Klopp: I´m free to sign Dortmund players|
|Mourinho: Hazard not Chelsea´s number 10|
|Mihajlovic not surprised by Niang form|
|La Liga Review: Barcelona march on; victory for Atletico Madrid|