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'
|Hernandez thanks Ferguson after United departure|
|Chung: AFC has compromised FIFA election|
|Wales the new best of British|
|Reus out of Germany qualifiers|
|Chile v Paraguay: Vidal missing for Copa champions|
|Ghedin: Anything is possible for Malta|
|Pogba will be worth €100m - Marotta|
|England can win Euro 2016 - Hodgson tells players|
|Conte unsure over Balotelli future|
|Martial never the same again - Mangala|
|Copa del Rey Review: Racing fall at the first|
|Shelvey dismisses talk of England snub|
|Galatasaray unable to play Grosskreutz|
|Faroe Islands v Northern Ireland: O´Neill preaches patience ahead of Euro double-header|
|Levy slams ´wholly inappropriate´ West Brom after Berahino chase|
|Panama v Uruguay: Visitors without Suarez and Cavani|
|Captaincy won´t change me - Robben|
|Liverpool sign Brazilian youngster Allan|
|PFA expects swift Berahino resolution|
|Argentina v Bolivia: Mascherano backs ´very special´ Messi|
|´I do not know if I´m worth €80million´ - Martial shocked at price-tag|
|Afellay suspension reduced|
|Noble red card rescinded|
|Portugal v France: Deschamps aiming to correct mistakes|
|Bahebeck given the all clear|
|Germany v Poland: Muller out to settle the score|
|Gibraltar v Republic of Ireland: Keane counting on McCarthy and Walters|
|Georgia v Scotland: Tbilisi trip has must-win feel for Robertson|
|Juve still the team to beat - Hernanes|
|De Gea will remain professional, says team-mate Mata|
|Berahino given extra time off following strike tweet|
|´No excuses´ as Costa seeks to kick-start season|
|I´m not like Messi or Ronaldo – Hazard|
|United States v Peru: Klinsmann out to ´prove a point´|
|Martinez unsure when Cleverley will return|
|France set for Russia friendly ahead of Euros|
|Former Manchester United forward Berbatov joins PAOK|
|De Gea must play to earn Euro 2016 spot – Del Bosque|
|Cahill thrilled to lead Socceroos|
|Wijnaldum urges patience with new-look Newcastle|
|Reid praises Stones´ professionalism|
|Mexico v Trinidad and Tobago: Islanders hoping to build on Gold Cup display|
|Choosing Brazil over Spain was easiest decision, says Rafinha|
|Galliani hails ´changed´ Balotelli|
|OFC World Cup Qualifying Review: American Samoa notch second competitive win|
|Canada v Belize: Hosts look to stay calm|
|Carragher surprised by ´big´ Martial price|
|No pressure on Rodgers - Rush|
|No Benzema, no Cavani - Arsenal ´can´t compete´ says Sol Campbell|
|FFA muzzle Postecoglou after pay dispute criticism|
|Celtic complete Simunovic signing|
|Joaquin: I´m as happy as a little boy|
|Navas given time off by Costa Rica|
|Martial unfazed by prospect of United pressure|
|Ramos urges De Gea to overcome transfer woe|
|Premier League spending hits £1bn in 2015|
|Italy v Malta: Conte calls for focus|
|De Laurentiis reveals failed Juve bid for Hamsik|
|Schweinsteiger: Manchester not as bad as everybody thinks|
|Galatasaray finalise Grosskreutz deal|
|Ilori agrees season-long loan with Villa|
|Wolfsburg want to ´annoy´ Bayern - Dante|
|Norwich bring in Jarvis on loan|
|Everton sign Lennon on permanent deal|
|United put blame back on Real Madrid over De Gea|
|Premier League Deadline Day: Berahino on strike, United make Martial number nine|
|Peace: West Brom must repair damage caused by Tottenham´s Berahino pursuit|
|Dyer secures loan switch to Leicester|
|Walters mocks deadline-day culture|
|Derby complete Johnson deal|
|Hector signed by Chelsea and loaned back to Reading|
|Watford secure Ibarbo loan|
|United´s Martial offer too good to reject - Monaco chief|
|No regrets over failed Juve move - Draxler|
|Guedioura returns to Watford|
|Berahino tweet casts doubt on West Brom future|
|Yedlin loaned to Sunderland|
|United complete Martial swoop|
|Strootman undergoes surgery again|
|FIFA set to clarify proposed Grosskreutz deal|
|Watford bolster strikeforce with Oulare|
|Belgium v Bosnia-Herzegovina: Time running out for visitors|
|Antonio makes West Ham move|
|I want to feel important at Leverkusen - Hernandez|
|Villa seal deadline-day swoop for Lescott|
|Austin to stay at QPR|
|Everton´s Gibson given driving ban|
|David de Gea: Timeline of Manchester United goalkeeper´s failed Real Madrid move|
|Southampton complete Van Dijk swoop|
|Bournemouth complete Murray deal|
|Real take aim at United over failed De Gea move|
|Premier League Deadline Day: West Ham bring in three, De Gea set for United stay|
|Reports: Real Madrid will not appeal De Gea transfer collapse|
|FIFA quiet on ´confidential´ De Gea paperwork|
|Chelsea sign Nantes defender Djilobodji|
|West Ham land Jelavic|
|Anthony who? Rooney had to ask who Martial was, says Schneiderlin|
|Moses joins West Ham on loan|
|Netherlands v Iceland: Blind era begins in Amsterdam|
|Deportivo snap up Gutierrez|
|Newcastle´s Kemen returns to France|
|Everton wrap up Funes Mori deal|
|Cyprus v Wales: Difficult to overestimate Bale contribution, says Davies|
|Blaszczykowski ´never considered´ Schalke move|
|Di Maria opens up about Van Gaal ´rows´|
|West Ham seal Song loan|
|Australia v Bangladesh: Luongo excited by Rogic partnership|
|Maturity, fitness vital for Shelvey|
|South Korea v Laos: Hwaseong hosts hunting goals|
|Japan v Cambodia: Hosts out to arrest four-match slump|
|Troisi joins Saudi giants Al-Ittihad|
|Casemiro lauds Benitez after re-signing|
|Rojo wants United stay|
|Milan tried for Witsel - Galliani|
|Conte eyes two Italy wins|
|Ligue 1 Deadline Day: Marseille sign three amid Martial saga|
|La Liga Deadline Day: Uncertainty over De Gea future, Joaquin back at Betis|
|Serie A Deadline Day: Juve and Inter busy as window closes|
|Layun swaps Watford for Porto|
|Joaquin makes Betis return alongside Van Wolfswinkel|
|Coventry City 2 Southend United 2: Ricketts salvages point for hosts|
|Real face anxious wait over De Gea as window shuts|
|Milan loan Mastour to Malaga|