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'
|Appeals Committee upholds Simeone´s three-game ban|
|Klopp baffled by Liverpool defensive collapse|
|Villarreal 1 Liverpool 0: Adrian hands injury-time advantage to La Liga side|
|Shakhtar Donetsk 2 Sevilla 2: Gameiro nets late penalty to salvage draw|
|Bayern Munich v Borussia Monchengladbach: Wounded Bayern on the brink of Bundesliga glory|
|Reina lauds Atletico ´super-team´|
|AC Milan announce €89.3m loss|
|Wilshere: Injuries inevitable with my style of play|
|Atletico Madrid v Rayo Vallecano: Saul demands La Liga focus|
|Mancini feels Toure swoop is unlikely|
|Atletico a joy to watch, says Allardyce|
|Liverpool ordered to pay record tribunal fee to Burnley for Ings|
|Klaassen not interested in Napoli move|
|Borussia Dortmund v Wolfsburg: Hummels transfer request disrupts hosts´ preparation|
|Alli banned for the rest of Spurs´ season by FA|
|West Brom v West Ham: Bilic tips Pulis to put up a fight|
|Agbonlahor steps down as Aston Villa captain|
|Real Betis v Barcelona: Mixed emotions for Montoya as visitors close in on title|
|Hummels tells Dortmund he wants Bayern move|
|Matuidi out of PSG-Rennes clash|
|Newcastle United v Crystal Palace: Pardew poised for St James´ return|
|Flores reveals Watford break clause|
|England´s Jones helps Pardew keep Eagles grounded|
|Arsenal v Norwich City: Under-fire Wenger buoyed by easing injury woes|
|Forster: Chelsea rumours a compliment|
|Lambert to leave Blackburn|
|Sakho provisionally suspended by UEFA|
|Stoke City v Sunderland: Allardyce wary of wounded Potters|
|Falcao: USA can win Copa America|
|Madrid confirm Benzema hamstring strain|
|Everton v AFC Bournemouth: Martinez wants repeat of Wembley second-half|
|Fabregas wants title challenge under Conte|
|The pressure got to me at Tottenham, reveals Soldado|
|Bilic has no concerns over Cresswell future|
|Bilic: I might have to be a Manchester United fan!|
|Real Sociedad v Real Madrid: Carvajal hoping to cope without Benzema and Ronaldo|
|Martinez: Judge me over three seasons, not two or three months|
|Unhappy Muller accepts being dropped for Atletico clash|
|Cattermole crucial to Sunderland relegation fight - Allardyce|
|Leicester success not a one-off - Mandaric|
|There cannot be two coaches of Inter - Mancini|
|Guardiola: Don´t compare Saul to Messi|
|MLS Review: NYC stumble again, Timbers hold Revolution|
|America 2 Tigres UANL 1 (4-1 agg): Arroyo, Martinez seal win|
|Copa Libertadores Review: Rosario claim away advantage, Corinthians hold Nacional|
|PSG prospect Edouard signs first professional contract|
|Gap between Juventus and Milan is ´embarrassing´ - Sacchi|
|Mancini: I made some errors this season|
|Schlupp: Leicester are playing to win the title|
|Leicester showing nothing is impossible - Del Piero|
|Zidane does not like James, claims Valderrama|
|Pressure on ´legendary´ Liverpool - Marcelino|
|Madrid clash ´career-defining´ - Kompany|
|Neuer: We have to be awake in Munich|
|Moreno: I´m at my best thanks to Klopp|
|Bale: City are elite but Madrid more mature|
|We showed we belong - Oblak|
|Torres: This is for the Atletico supporters|
|Alonso: It could have been worse but Bayern still believe|
|Simeone praises ´best´ Atletico after Bayern triumph|
|Guardiola blames slow start for Bayern loss|
|Saul hails most important and beautiful goal of his career|
|Filipe Luis lauds Atletico match-winner Saul|
|Chelsea down City for third straight FA Youth Cup|
|Atletico Madrid 1 Bayern Munich 0: No joy for Pep as Saul answers the call|
|Lille 0 Angers 0: Coupe de la Ligue finalists frustrated in stalemate|
|Lucescu plays down Konoplyanka factor|
|Experience can count for nothing, Klopp warns Liverpool|
|Sevilla are ready to make history - Emery|
|Klopp delight for Hillsborough families|
|Cosmos boss claim contact with Totti|
|Paris Saint-Germain v Rennes: Pastore insists champions remain motivated|
|Ronaldo will be ´80 per cent´ fit... according to his mother|
|Europa League a ´dream´ for Villarreal and Soldado|
|Ozil: Third place will mean Arsenal have achieved target|
|The Bendtner experiment was a failure - Allofs|
|Infantino wants friendly between North and South Korea|
|´The worst cash out decision in history´ - Leicester backer bailed on 5000/1 bet - for 95p!|
|Sakho will not contest doping offence, but has Euro 2016 lifeline|
|Ibrahimovic, Di Maria, Ben Arfa up for Ligue 1 award|
|Simeone banned for rest of Liga season|
|Cazorla open to Villarreal return|
|RB Leipzig rejected Vardy for being ´too old´ at 27|
|Villa: Griezmann at Messi and Ronaldo´s level|
|ICC chief dreams of hosting Old Firm derby at Wembley|
|Evra: Allegri has no time for idiots|
|Beckenbauer backs Hoeness to step in for Sammer at Bayern|
|Benzema is France´s best striker - Sagna|
|Guardiola: Bayern success hinges on Champions League|
|´Never give up and be positive´ - Ronaldo rallies Madrid team-mates|
|Hart performance was ´Schmeichel-esque´ - Ferdinand|
|Benitez relieved for Hillsborough families|
|It´s hard without Ronaldo - Kroos|
|Former Inter midfielder Mariga banned for five games for injuring referee|
|Nichols free to play grand final|
|Copa Libertadores Review: Mosquera gives Tachira advantage, Nacional hold Huracan|
|Sampaoli: I almost joined Chelsea|
|Leicester´s triumph unbelievable, but deserved - Fletcher|
|Szczesny wants Roma stay|
|Torres: Nothing would compare to winning a title with Atleti|
|Ramos satisfied with 0-0 draw|
|Filipe Luis: Leicester are like Atletico|
|Ronaldo is not a child - Casemiro|
|Lewandowski: Maybe I will play in England or Spain|
|There are ´a million´ more disappointing results than 0-0 - Kompany|
|Leicester don´t need Vardy to win title at United, says Simpson|
|Dalglish: Families deserve Hillsborough verdict|
|Moving Southampton game impossible - Pellegrini|
|Tavecchio coy on Conte replacement|
|Pellegrini accuses Madrid of lacking intent in stalemate|
|Bale pleased with Madrid display|
|Ronaldo, Benzema doubtful for second leg against City|