Moussa Sissoko scored a late winner as Newcastle United closed their pre-season programme with a 1-0 victory over Real Sociedad on Sunday.
After a first half in which chances were few and far between, Newcastle stepped up the pace after the break, but left it late to go in front at St James' Park.
Substitutes Ayoze Perez and Gabriel Obertan combined well before Sissoko stroked the ball into the bottom right-hand corner of the net from distance.
There was an early scare for the home side when Yoan Gouffran was brought down by Sergio Canales just outside the area.
The winger appeared to be holding his knee as he hit the deck, but limped back into the game after receiving lengthy treatment.
Chances were at a premium for much of the opening period and Imanol Agirretxe failed to make his opportunity count just before the half-hour mark when he could have lofted the ball over goalkeeper Tim Krul.
Emmanuel Riviere had Newcastle's best chance of the first half, firing over before Agirretxe almost capitalised on a missed headed clearance by Fabricio Coloccini.
Gouffran was withdrawn at the break to be replaced by Rolando Aarons and the hosts began to look more dangerous in attack.
The youngster's first major contribution was to beat three Sociedad players on a charge forward, only to see his eventual effort deflected behind.
Mike Williamson worked goalkeeper Geronimo Rulli with a goalbound header from a corner on the hour, but it was midfielder Sissoko who settled matters.
The Frenchman found the net two minutes from time to send Newcastle into next weekend's season-opener against champions Manchester City with a timely confidence boost.
|Ba left out of Senegal AFCON squad|
|Redknapp frustrated by penalty call|
|Wenger sees Giroud wrongs|
|Premier League schedule a ´disgrace´, says Poyet|
|Championship Review: Bournemouth stay top, Heskey scores on Bolton debut|
|Hughes lauds Bojan performance|
|Koeman: Saints marching on|
|Pardew rues referee error|
|Arsenal 2 QPR 1: Sublime Alexis secures the spoils|
|Martinez questions Walters decision|
|Poyet laments Sunderland mistakes|
|League One Review: Swindon cruise to win over Walsall|
|Irvine aware of need for improvement|
|United still doing ´very bad things´ - Van Gaal|
|Lambert proud of players despite Swansea defeat|
|Warnock bemoans Palace defence|
|Bruce hails Hull´s spirit|
|Pochettino relieved to come away with victory|
|Dyche: We had our pocket pinched|
|Monk hails Fabianski performance|
|Pearson demands greater concentration from Leicester|
|Kompany set for City return|
|Rodgers hails character after battling win|
|League Two Review: Ainsworth frustrated by Luton, Shrewsbury go top|
|Everton 0 Stoke City 1: Lacklustre Everton slip to defeat|
|Sunderland 1 Hull City 3: Triumphant return for Bruce|
|Burnley 0 Liverpool 1: Sterling wins it at Turf Moor|
|Leicester City 1 Tottenham 2: Eriksen piles misery on Pearson´s men|
|Manchester United 3 Newcastle United 1: Rooney extends hosts´ streak|
|West Brom 1 Manchester City 3: Three and easy for in-form champions|
|Swansea City 1 Aston Villa 0: Hosts break Boxing Day duck|
|Crystal Palace 1 Southampton 3: Mane marks return with star performance|
|Allardyce upbeat despite defeat|
|Van Dijk happy at Celtic - Deila|
|Table-topping Chelsea delight Mourinho|
|Chelsea 2 West Ham 0: Mourinho´s men ease to victory|
|Suarez enjoying Messi, Neymar link-up|
|A-League Review: Garcia rescues point for Perth, Adelaide up to second|
|Poyet calls for mid-season break|
|Van Gaal rules out Januzaj move|
|Rodgers: Balotelli may have to get used to bench|
|Lallana: I was trying too hard|
|Walker juggles music, football careers in Sweden|
|Song to face ´brother from another mother´ Fabregas|
|Adriano announces Le Havre deal|
|Pardew braced for Old Trafford test|
|Lescott unfazed by City reunion|
|Tskhadadze appointed Georgia coach|
|United to finish top three - Ferdinand|
|Allardyce: Stamford Bridge stalemate saved my job|
|Southampton need three January signings, says Watson|
|Liverpool can make Champions League, says fanzine editor|
|Walsh: Hull clash crucial for Leicester|
|Toure, Aubameyang and Enyeama make shortlist for African gong|
|Docherty backs Chelsea to win two-horse race|
|Liverpool could benefit from Hyypia influence - Scales|
|Saudi Arabia name Asian Cup squad|
|Forty-year-old Cahill no problem for Postecoglou|