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'
|MLS Review: Sounders clinch Supporters´ Shield, Whitecaps reach play-offs|
|Mladenov knocked out in Sofia derby|
|Aguero in spotlight for Noble challenge|
|DFB Pokal Preview: Dortmund out to arrest slump|
|Mihajlovic: We tried to unsettle Roma|
|Garcia: Roma buried Bayern demons|
|Coupe de la Ligue Preview: In-form Marseille travel to Rennes|
|La Liga Review: Real claim Clasico honours|
|Serie A review: Roma held, Sassuolo rampant|
|Falcao doubtful for Chelsea clash|
|Suarez glad to be back despite Clasico defeat|
|Primeira Liga Review: Porto thrash Arouca, Pacos continue unbeaten run|
|Eredivisie Review: Ajax avoid slip-up, Vitesse denied by late equaliser|
|Real heart pleases Ancelotti|
|Ligue 1 Review: Sagnol hurting after PSG loss as Nantes extend unbeaten run|
|Luis Enrique acknowledges Real´s Clasico supremacy|
|Ramos delight as Real romp past Barca|
|Red card motivated PSG - Blanc|
|Leicester below par - Pearson|
|Bundesliga Review: Dortmund woes continue, Stuttgart edge thriller|
|Pique puzzled by penalty call|
|Indian Super League Preview: Lopez ban presents test for Atletico|
|Monk pleased to end winless run|
|Klopp vows to fight through rotten run|
|League Two Review: Murray beaten in Hartlepool bow, Luton go top|
|Swansea City 2 Leicester City 0: Bony brace seals important win|
|Warnock fumes at Dawson ´assault´|
|Hughes unhappy with first-half display|
|League One Review: Garner inspires Preston, Peterborough slip up|
|Real Madrid 3 Barcelona 1: Suarez denied in pulsating Clasico|
|Irvine thrilled with Anichebe impact|
|Bruce happy for Jakupovic|
|Milanic departs Leeds|
|Koeman pleased with ´difficult´ win|
|Rodgers content with Balotelli performance|
|Championship Review: Magic eight for Bournemouth, Wolves on the climb|
|Poyet left to rue more mistakes|
|PSG 3 Bordeaux 0: Lucas double helps champions close on Marseille|
|Wenger salutes ´focused´ Arsenal|
|Scottish Premiership Review: Hamilton beaten at Dundee, Inverness close gap|
|Indian Super League Review: Chennaiyin drubbed by Dynamos|
|Sunderland 0 Arsenal 2: Sanchez double the difference|
|West Brom 2 Crystal Palace 2: Berahino´s last-gasp penalty saves hosts|
|Liverpool 0 Hull City 0: Rodgers´ men frustrated in goalless draw|
|Southampton 1 Stoke City 0: Mane puts Saints second|
|Allardyce hopeful on Sakho injury|
|Borussia Dortmund 0 Hannover 1: Kiyotake increases pressure on Klopp|
|We did not deserve to lose - Pellegrini|
|Bremen dismiss Dutt after poor start|
|West Ham 2 Manchester City 1: Amalfitano and Sakho give hosts deserved win|
|QPR v Aston Villa: Redknapp wants Loftus Road to roar|
|Inzaghi warns against Milan complacency|
|Benitez shrugs off criticism|
|Pires, Lopez punished after spat|
|Mazzarri shrugs off sack rumours|
|Dyche not underestimating Everton|
|Melbourne Victory 5 Melbourne City 2: Berisha treble inspires derby win|
|Allegri hits back at Juve critics|
|Western Sydney Wanderers 1 Al Hilal 0: Juric earns slender lead|
|Redknapp denies Taarabt´s training accusations|
|United are in a fantastic position - Mourinho|
|Allardyce hails ´loyal´ West Ham owners|
|Scrap AFCON to stop Ebola - Song|
|Dutt: Werder deserved to lose|
|Wenger laments lack of confidence|
|Pardew urges Newcastle to ´challenge´ Champions League hopefuls|
|Chicago Fire 2 Houston Dynamo 1: Hosts give Pause fitting farewell|
|Falcao better at United - Filipe Luis|
|Blanc: I told you so|
|Crystal Palace to be sold - reports|
|Van Gaal backs ´unlucky´ Van Persie|
|Vitoria Setubal 0 Vitoria Guimaraes 1: Afonso´s goal enough|
|Delph sidelined for 2014|
|Carrick: I want to give Van Gaal selection headache|
|Aberdeen 1 Motherwell 0: Hayes strike enough to sink lowly visitors|
|Fulham 3 Charlton Athletic 0: Parker and Rodallega move Fulham out of drop zone|
|Celta Vigo 3 Levante 0: Alcaraz defeated in first game in charge|
|Toulouse 0 Lens 2: Visitors escape drop zone|
|Werder Bremen 0 Cologne 1: Ujah adds to bottom club´s woes|
|ADO Den Haag 2 Dordrecht 0: Kramer on target again|
|Possession key for Luis Enrique|
|FA charge Gillingham with ´race victimisation´|
|Poyet issues Sunderland rallying cry|
|Ancelotti ready to spring Clasico surprise|
|Suarez receiving help for biting ´impulse´|
|Tottenham v Newcastle United: Confident visitors look for White Hart Lane repeat|
|Manchester United v Chelsea: Van Gaal expecting Costa to play|
|Guardiola: Upcoming run crucial|
|UEFA investigate Daugavpils over match-fixing after arrests|
|Pires ´hit in face´ by opposition coach - Zico|
|Di Maria declared fit for Chelsea test|
|Burnley v Everton: Dyche relying on mental toughness|
|Milan v Fiorentina: Poli awaits crucial test|
|Serbia to appeal UEFA decision|
|Cesena v Inter: Milan club out to end tumultuous week|
|Bayern mauling changes nothing, says Garcia|
|Getafe v Atletico Madrid: Griezmann hopes to kick on|
|Cisse a doubt for Tottenham clash|
|Ferdinand plans to retire at end of season|
|Martinez pleased with stronger defensive displays|
|League One Preview: Crewe out to exit bottom four|
|Aguero not yet at his best, warns Pellegrini|
|AS Vita v ES Setif: Ibenge´s men seek to end 41-year wait|
|Juventus v Palermo: Buffon expecting response|
|League Two Preview: Life under Murray begins for Hartlepool|
|Villa have Cleverley option - Lambert|
|Costa has a ´little chance´ for United clash, says Mourinho|
|Brisbane Roar 0 Sydney 2: Janko scores wonder goal|
|Borussia Monchengladbach v Bayern Munich: Benatia calls for focus|
|Busquets available for El Clasico|
|Jones calls on United to attack|
|Coutinho vows to improve|
|Suarez not a factor - Ancelotti|
|Bruce wary of Balotelli backlash|
|Pogba extends Juve deal|
|Serbia awarded Albania walkover but deducted three points|
|Walcott to make comeback against Burnley|
|Robben lauds ´perfect´ life at Bayern|
|Vieira: Chelsea can better Arsenal´s ´Invincibles´ mark|
|No fracture for Bender - Klopp|
|Pepe a doubt for El Clasico|
|Allardyce: Carroll two or three weeks from return|
|Defoe unsure of future|
|CONCACAF Champions League Review: Saprissa overhaul Kansas City|
|Liga del Futbol Profesional Boliviano Review: Comeback win sends Oriente Petrolero second|
|Deportivo Capiata 0 Boca Juniors 1 (agg 1-1, 4-3 on penalties): Argentines reach quarters|
|Herediano 5 Perez Zeledon 1: Hosts cruise to victory|
|Liga MX Preview: Queretaro desperate to keep play-off hopes alive|
|First-half profligacy could have cost us - Favre|
|Lille will beat Everton next time - Enyeama|
|Montella pleased with Fiorentina response|
|Benitez blames lack of ´desire´|
|Dunga plays down captaincy controversy|