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'
|Corchia excited by Bielsa arrival but Lille future remains uncertain|
|Wenger: I threw up after first loss as coach|
|Conte wants fairytale finish for Terry|
|Iniesta: Barcelona haven´t lost faith in Luis Enrique|
|Mourinho knew Ibrahimovic would be ´massive´ for United|
|Ter Stegen doesn´t understand Barcelona fans whistling|
|´He is doing a fantastic job´ – Bartomeu backs Luis Enrique|
|Guardiola slams ´unacceptable´ Wenger treatment|
|Spalletti: Roma goal machine Dzeko now believes he´s world class|
|Emery refuses to blame referee after PSG are held|
|Montella dedicates AC Milan win to Berlusconi|
|The players don´t need whistles – Luis Enrique hits out at fans|
|Brazilian game called off due to TV dispute|
|Chelsea are already Premier League champions, says United boss Mourinho|
|Barcelona 2 Leganes 1: Late Messi penalty spares Ter Stegen´s blushes|
|Paris Saint-Germain 0 Toulouse 0: Champions spill valuable points|
|AC Milan 2 Fiorentina 1: Deulofeu strike keeps European hopes alive|
|Attitude got Man United through - Mourinho|
|Roma 4 Torino 1: Dzeko strikes again|
|Lincoln face Sutton or Arsenal in FA Cup quarter-finals, Chelsea host Man United|
|Neuer slams Jarstein after brawl|
|Blackburn Rovers 1 Manchester United 2: Substitutes Pogba and Ibrahimovic combine for late winner|
|Inter insist Perisic going nowhere, rule out move for Verratti|
|Borussia Monchengladbach 1 RB Leipzig 2: Forsberg and Werner reignite title bid|
|Training-ground meetings paid dividends - Pochettino|
|I´m trying to find a team - Berbatov open to offers|
|Inspired by Zeman´s return, Pescara hammer Genoa 5-0|
|Gabigol wants to make history after Inter breakthrough|
|Chievo 1 Napoli 3: Sarri´s men bounce back from Champions League disappoitment|
|Alfonso Perez calls for Pique to quit international football over political beliefs|
|Benatia refuses to question Allegri´s decisions|
|Fulham 0 Tottenham 3: Kane hat-trick fires Spurs into quarter-finals|
|Oblak return boosts Atletico ahead of Leverkusen trip|
|Gabigol and Inter ready to feast on success after late winner|
|Bologna 0 Inter 1: Gabigol gets belated lift-off in Serie A|
|Still no Mascherano or Arda for Barcelona|
|Bielsa appointed Lille boss from next season|
|Janssen determined to make the grade at Tottenham|
|Stones missing Kompany influence at Manchester City - Ferdinand|
|Central Coast Mariners 0 Melbourne Victory 3: Muscat´s men cruise to win|
|David Villa sent off after video replay|
|Favre not blaming Balotelli for latest red card|
|´It is my future at stake´ – Isco could leave Real Madrid|
|Smalling desperate for Ibrahimovic stay|
|´He will be here for sure´ - Mourinho rules out Shaw exit|
|Wenger not ready for retirement, wants Arsenal stay|
|Pogba will soon look cheap, claims Manchester United boss Mourinho|
|Casilla defends under-fire Navas|
|Isco ´happy and committed´ at Real Madrid – Zidane|
|Middle finger gesture was because I was spat at - Ancelotti|
|Leicester must learn from Millwall´s ´gladiators´ – Ranieri|
|Sevilla 2 Eibar 0: Sampaoli´s side move up to second|
|Lorient 0 Nice 1: Balotelli sent off as visitors go second|
|Too early to talk about Chelsea double – Conte|
|Conte delighted with Chelsea´s fringe players|
|Foreign players don´t expect cup upsets – Terry|
|Bale eyes top form and titles after scoring on Real Madrid comeback|
|Watzke received death threats after Leipzig match|
|Wolves 0 Chelsea 2: Pedro and Costa send Conte´s men through|
|Zidane reveals what he whispered to Bale before comeback goal|
|Dardai hits out at ´Bayern bonus´ after late equaliser|
|Ancelotti adamant Bayern deserved controversial equaliser|
|Ronaldo was not getting anxious, insists Zidane|
|Kompany injury not serious, says Manchester City boss Guardiola|
|Kompany injury not serious, says Manchester City boss Guardiola|
|Ranieri: 10-man Millwall were better than us|
|Piszczek represents everything Borussia Dortmund stand for - Tuchel|
|Championship Review: Brighton back top, Wednesday capitalise on Norwich slip|
|´Vamosss!!!´ - Bale ecstatic after scoring on Real Madrid return|
|Favourites tag weighed heavily on Burnley in Lincoln loss, says Dyche|
|Simeone delighted with Gameiro´s ruthless cameo|
|Millwall 1 Leicester City 0: Cummings wins it for 10-man Lions|
|Middlesbrough 3 Oxford United 2: Stuani rescues Boro after minute of mayhem|
|Real Madrid 2 Espanyol 0: Bale scores on comeback as hosts extend lead|
|Huddersfield Town 0 Manchester City 0: No pep from Guardiola´s men in cup stalemate|
|Hertha Berlin 1 Bayern Munich 1: Lewandowski rescues champions with last kick|
|Barton denies trying to force Rhead red and accuses Lincoln of play-acting|
|Borussia Dortmund 3 Wolfsburg 0: Piszczek stars with Yellow Wall absent|
|Cowley brothers marvel at Lincoln´s FA Cup heroics|
|Violence in the stands mars Tigres victory|
|Raggett ´lost for words´ after sending Lincoln into FA Cup quarter-finals|
|Gameiro dedicates hat-trick to grandmother|
|Burnley 0 Lincoln City 1: Raggett puts non-league heroes in FA Cup dreamland|
|Gameiro hits fastest LaLiga hat-trick in 22 years|
|Big-money signing Krychowiak to play with PSG reserves|
|Sporting Gijon 1 Atletico Madrid 4: Stunning Gameiro hat-trick snatches victory|
|A-League Review: Derby defeat for Sydney, Melbourne City cruise to victory|
|Barcelona results ´irrelevant´ to Luis Enrique´s future|
|Montella backs Donnarumma for Ballon d´Or|
|Bournemouth congratulate Arter on birth of daughter|
|Loftus-Cheek confident his Chelsea chance will come|
|Rashford still part of Mourinho´s plans - Brown|
|Klopp confirms Liverpool transfer plans are already underway|
|No chance of Jesus joining Inter, says agent|
|Dani Alves: If anyone can come back, it´s the Barcelona machines|
|Purslow stepping down from Chelsea role|
|Redknapp: Tottenham will win Premier League within four years|
|Buffon one of the greatest of all time - Casillas|
|Winning over happiness for Chelsea´s Conte|
|Manchester City can still win Premier League - Gundogan|
|Ferdinand backs Keane to re-sign with United like Pogba|
|Pochettino: Janssen must do more at Tottenham|
|Marotta: Juve signing Verratti unrealistic|
|Guardiola: I will never return to Barcelona|
|Allegri jokes ´how is my English?´ as Arsenal rumours intensify|
|We did not play well – Juventus hero Dybala fires Porto warning|