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'
|Platini will not challenge Blatter for FIFA presidency|
|Bruce convinced of qualification|
|Alonso set to swap Madrid for Munich|
|Pochettino to use MK Dons as an example|
|Champions League difficult for Arsenal - Bilic|
|Redknapp takes aim at ´really poor´ QPR|
|MLS Preview: Timbers braced for ´massive´ clash in Vancouver|
|Los Angeles Galaxy 4 DC United 1: Arena´s side show quality|
|Copa Sudamericana Review: River Plate, Libertad among teams to progress|
|CONCACAF Champions League Review: Pachuca in seventh heaven, Leon held|
|LDU Quito 3 Deportivo Quito 0: Hosts earn bragging rights against rivals|
|Johnson calm over future|
|Kiessling hails Leverkusen|
|Benitez: Mistakes cost Napoli Champions League spot|
|K. League Preview: Seoul eyeing winning streak|
|Liga MX Preview: Monterrey looking to build momentum|
|Valverde hails ´historic day´ for Bilbao|
|UEFA Champions League Review: Mixed results for Europe´s big guns, Moti the hero for Ludogorets|
|Atletico announce Velazquez capture|
|Giroud set for lengthy absence - Wenger|
|Holders City handed home clash with Wednesday|
|La Liga Preview: Saul not worried by Simeone absence, Barca face tough Villarreal test|
|Eto´o retires from Cameroon duty|
|Aston Villa 0 Leyton Orient 1: Late Vincelot winner sends underdogs through|
|Birmingham City 0 Sunderland 3: Late strikes stun hosts|
|Arsenal 1 Besiktas 0 (1-0 agg): Alexis strike takes Wenger´s men through|
|Stoke City 3 Portsmouth 0: Walters brace sees hosts into League Cup third round|
|Burton Albion 1 QPR 0: Late strike seals upset for fourth-tier hosts|
|Ligue 1 Preview: Bordeaux look to maintain 100 per cent start|
|Dunga: No one guaranteed a place in Brazil squad|
|Serie A Preview: Juve´s Allegri era starts at Chievo|
|Mazzarri calls for professional Inter|
|Utrecht swoop for Peterson|
|Deeney extends Watford stay|
|Alonso calls time on international career|
|Bundesliga Preview: Schalke captain Howedes issues rallying cry, Leverkusen face Hertha|
|Fazio joins Spurs from Sevilla|
|Warnock will control transfers - Parish|
|Pochettino wants Soldado and Townsend to stay at Spurs|
|Augsburg v Borussia Dortmund: Weidenfeller returns for wobbling visitors|
|Celtic complete Wakaso deal|
|Seoul 0 Pohang Steelers 0 (aet, 3-0 on penalties): Yu heroics send Seoul through|
|Guangzhou Evergrande 2 Western Sydney Wanderers 1: Wanderers squeeze through on away goals|
|I´m the future, Benatia´s the past - Manolas|
|Osotspa 3 Chiangrai United 3: Visitors secure point with late rally|
|Israel versus Belgium fixture postponed|
|Fernandes reveals Redknapp contract talks|
|Warnock makes Palace return|
|Eto´o grateful to Mourinho|
|Maiga loaned to Metz|
|Pearson rues ´poor´ Leicester display|
|Bruce: Rhodes deal dead and buried|
|Balotelli set to face Tottenham|
|Di Maria wanted Real stay|
|Dyche wary of inflated transfer market|
|Celtic didn´t deserve Champions League, concedes Deila|
|Game of two halves for Koeman|
|Allardyce hails ´inspired´ Howard|
|CONCACAF Champions League Review: Red Bulls up and running, Rodriguez stars for Saprissa|
|Copa Sudamericana Review: Gimenez double helps Emelec through|
|Eredivisie Preview: Guardado set for PSV bow, Ajax eye recovery|
|Van Gaal ´not shocked´ by Dons defeat|
|Deila: Celtic deserved Champions League exit|
|Barca agree deal for Pereira|
|Lopetegui lauds Porto progression|
|League Cup Review: United hammered by MK Dons, West Ham lose on penalties|
|West Brom 1 Oxford United 1 (aet, 7-6 on penalties): Hosts avoid cup shock|
|Manchester United win ´something dreams are made of´ - Robinson|
|UEFA Champions League Review: Celtic out again, Porto safely through|
|United rebuild will take time - Van Gaal|
|Erbil 2 Ha Noi T&T 0 (agg 3-0): Iraqi side comfortably into the AFC Cup semis|
|West Ham 1 Sheffield United 1 (aet, 4-5 on penalties): Valencia miss proves crucial in shootout defe|
|Millwall 0 Southampton 2: Koeman claims first win|
|MK Dons 4 Manchester United 0: Humiliation for Van Gaal|
|Swansea City 1 Rotherham United 0: Gomis off the mark in League Cup clash|
|Leicester City 0 Shrewsbury Town 1: Mangan seals shock win for Shrewsbury|
|Burnley 0 Sheffield Wednesday 1: Visitors dump Dyche´s men out of League Cup|
|Walsall 0 Crystal Palace 3: Gayle treble lifts Palace gloom|
|Gillingham 0 Newcastle United 1: Egan own goal secures Newcastle triumph|
|Coupe de la Ligue Review: Auxerre, Ajaccio secure big wins|
|Al Ittihad 1 Al Ain 3: Gyan helps visitors secure semi-final spot|
|Hull City v Lokeren: Elmohamady calls for vocal support|
|Al Sadd 0 Al Hilal 0 (agg 0-1): Visitors hang on to progress|
|Tottenham v AEL: Pochettino eyes continuation of good form|
|Benitez: The pressure is on Athletic|
|Eto´o completes Goodison Park move|
|Reus nets in Dortmund friendly win|
|Roma secure Manolas signing|
|Aduriz: We can´t play for a draw|
|Al Hadd 2 Al Qadsia 2 (agg 3-3): Last-gasp leveller seals away-goal victory for visitors|
|United break transfer record for Di Maria|
|Hull announce Dawson signing|
|Moses set for Stoke debut|
|Hodgson pays tribute to Lampard|
|UEFA Europa League Play-Off Preview: Lyon look to reverse upset, Inter defend three-goal lead|
|Lukimya pens new Bremen deal|
|Bayern complete Benatia swoop|
|Bayern complete Benatia swoop|
|M´Bia replaces Eto´o as Cameroon captain|
|Palermo complete double defensive deal|
|Bakambu claims Swansea and Freiburg interest|
|Inter v Stjarnan: Mazzarri may tinker for Europa League test|
|Kitchee 0 Ninh Binh 1 (agg 4-3): Hosts hold off strong challenge to reach last four|
|Guardado pens PSV loan deal|
|Lampard announces international retirement|
|Wenger unsure on severity of Giroud injury|
|Mascherano signs new Barca contract|
|Basanta seized Europe chance with Fiorentina|
|Marchisio: Allegri´s philosophy will boost Juve´s Europe hopes|
|Persipura 6 Al Kuwait 1 (agg 8-4): Hosts romp holders to make history|
|Cahill thrilled with Chelsea start|
|Gardner completes Brighton loan|
|Pienaar out of Chelsea clash, Lukaku faces assessment|
|Seoul v Pohang Steelers: Korean rivals battle for AFC Champions League semi spot|
|Lamela keen to add goals|
|Jovetic refuses to take plaudits|
|Henderson tips Balotelli for success|
|Moya takes positives from defensive showing|
|Pepe unperturbed by scrappy showing|
|New youngsters will adapt, says Rodgers|
|Girard confident of Lille progression|
|Riise fears for Fulham under Magath|
|Balotelli: ´It was a mistake´ to leave England|
|Simeone: My suspension made no difference|
|Guangzhou Evergrande v Western Sydney Wanderers: Aussies braced for hostile reception|
|Bayern need time - Alaba|
|Ancelotti: Fatigue behind lacklustre display|
|Pellegrini delighted with Premier League start|
|Moreirense 0 Sporting Braga 0: Conceicao´s men held in Moreira|
|Liverpool will bounce back - Rodgers|