Brazil needed a moment of quality from Fred to beat Serbia as they claimed a narrow 1-0 win in their final game before the FIFA World Cup.
Having not been tested by Panama in midweek, Brazil were at full-strength for the clash against Ljubinko Drulovic's side.
They were restrained for large spells, however, and coach Luiz Felipe Scolari will be aware improvement is required despite Fred's well-taken winner.
The only goal of the game came after 58 minutes when the Fluminense forward brought down a long ball on his chest under pressure from Branislav Ivanovic and Dusan Basta.
Despite stumbling, he kept his nerve to finish past Vladimir Stojkovic and Serbia were unable to respond.
Brazil's victory may do little to fill an expectant nation with great confidence. However, with Neymar getting almost 80 minutes of action on his road to full fitness and Fred scoring his first in Brazil colours since the Confederations Cup, there are reasons for the hosts to be optimistic.
After a lively opening from both sides, Aleksandar Kolarov threatened first when he struck an effort wide of Julio Cesar's left-hand post after nine minutes.
Neymar then almost benefited from a block that fortuitously landed in his path - only for Ivanovic to produce a well-timed last-ditch tackle.
A combination of tenacious and robust defending helped keep Brazil's forwards well shackled, although Fred was next to threaten - his dipping strike veering off target 24 minutes in.
David Luiz was forced into a hurried clearance following Kolarov's fierce delivery before Aleksandar Mitrovic wasted the best chance of the half, heading wide with the goal at his mercy.
Luiz and Thiago Silva, who will team up at Paris Saint-Germain from next season, then got mixed up close to half-time, but an offside flag rescued Brazil as Lazar Markovic converted.
Scolari swapped Oscar for Willian at the break, presumably in an effort to shake things up, but Brazil still looked somewhat out of sorts.
Indeed, Dusan Tadic perhaps could have opened the scoring for Serbia had he gambled on reaching a cross lofted into the hosts' box.
Fred subsequently ensured first blood went to Brazil - cleverly chesting Thiago's delivery to take Ivanovic out of the game before prodding home the opener.
Neymar, lively but far from his dangerous best, then flashed an effort over the crossbar as his side sought to make the scoreline more emphatic.
There were to be no more goals, although Serbia's Milos Jojic and Brazil forward Jo hit the woodwork in the closing stages.
Brazil open their World Cup campaign against Croatia on June 12 and will be hopeful of a more fluent display.
|Coach: Luiz Felipe Scolari|
for Oscar 46'
for Paulinho 65'
for Dani Alves 72'
for Fred 75'
for Marcelo 76'
for Neymar 81'
|Fer closes in on QPR return|
|Crouch set for surgery|
|Dortmund confirm Tuchel as Klopp replacement|
|Real still unsure over Modric injury|
|Adams leaves relegation-threatened Tranmere|
|Tevez rubbishes Juve exit talk|
|Moyes: I had to fight to keep Rooney at United|
|Perth Glory 3 Melbourne City 1: Maclaren treble the difference|
|Dyche: Burnley are too honest|
|Illarramendi eager for Real stay|
|Hazard issues Chelsea warning|
|MLS Review: Injury-time winner buoys Galaxy, Martins shows class for Sounders|
|Pastore talents ´unpredictable´ - Blanc|
|Liverpool much bigger than City - Rodgers|
|AFC Champions League Preview: Evergrande look to progress|
|Clarke expects distraught Federici to bounce back|
|Toure is City´s scapegoat - agent|
|Allegri praises high-flying Juve|
|Athletic Bilbao 4 Getafe 0: Hosts end winless run|
|Depay elated at title success|
|Bale and Modric injuries sour Real win|
|Eredivisie Review: PSV seal title, Dordrecht on the brink of relegation|
|CAF Champions League Review: Kone battle back to hold TP Mazembe as El Merreikh stun ES Tunis|
|Juventus 2 Lazio 0: Tevez inspires win over in-form visitors|
|Ligue 1 Review: Monaco held by late Habibou strike, PSG back on top|
|Bundesliga Review: Bayern win to close in on title, no Klopp distraction for Dortmund|
|Real Madrid 3 Malaga 1: Ramos, Rodriguez and Ronaldo do the business for Real|
|Primeira Liga Review: Jonas double maintains Benfica lead, Porto remain three points back|
|PSV secure Eredivisie title|
|Simeone lauds first-half display|
|Reading motivation ´on a different planet´ - Wenger|
|Mourinho: Title almost secured after United win|
|Sampdoria 0 Cesena 0 : Strugglers frustrate Mihajlovic´s men|
|Fatigue taking its toll – Blanc|
|Van Gaal not convinced by Herrera decision|
|League Two Review: Burton seal promotion, relegation battle down to three|
|Reading 1 Arsenal 2 (aet): Federici left red-faced as holders avoid upset|
|Klopp braced for ´brutally emotional´ farewell|
|Burnley still have belief to beat drop - Dyche|
|Chelsea 1 Manchester United 0: Hazard puts leaders 10 points clear|
|Guardiola focusing on Champions League|
|Bale limps off for Real Madrid with apparent calf injury|
|Championship Review: Wigan keep survival hopes alive, Watford go top|
|Barcelona players ´empty´ after Valencia win, says Luis Enrique|
|Pulis thanks ´first-class´ Palace fans|
|Barkley will become ´an Everton great´ - Martinez|
|Deportivo La Coruna 1 Atletico Madrid 2: Griezmann brace does the damage|
|Monk: Swansea deserved defeat|
|Hughes proud of Stoke comeback|
|Pardew: Defeat will not change Palace approach|
|Penalty hero Bravo plays down role in Barca win|
|Aberdeen 1 Dundee United 0: Prolific Rooney seals European spot|
|League One Review: Bristol City clinch title, MK Dons batter Orient|
|Pearson: Still work to do for Leicester|
|Mirallas happy at Everton|
|Koeman remaining positive after Stoke defeat|
|Magnificent Messi brings up 400 Barca goals|
|Nice 1 Paris Saint-Germain 3: Pastore double sends champions back to top|
|Leicester City 2 Swansea City 0: Hosts´ survival hopes boosted with third win in a row|
|Stoke City 2 Southampton 1: Adam strike snatches victory|
|Barcelona 2 Valencia 0: Suarez and Messi on target as leaders battle to win|
|Everton 1 Burnley 0: Mirallas sends visitors bottom|
|Crystal Palace 0 West Brom 2: Pulis makes winning return to Selhurst Park|
|Hoffenheim 0 Bayern Munich 2: Champions end difficult week with hard-earned win|
|Borussia Dortmund 3 Paderborn 0: Hosts respond to Klopp news with fine display|
|Inter have more to lose than Milan - Mancini|
|A-League Review: Victory on the cusp of premiership|
|Newcastle job hardest in football - Carver|
|Diego Lopez a doubt for Milan derby|
|Tevez agent hits out at Boca|
|Mourinho hails ´consistent´ Hazard|
|Arteta: New contract will take five minutes|
|Lopetegui dismisses Real link|
|Ancelotti has no plans to sign new goalkeeper|
|Blanc backs Cavani to respond|
|New York Red Bulls 2 San Jose Earthquakes 0: Hosts stay unbeaten|
|Marseille cannot win title - Bielsa|
|Mourinho feels for Pellegrini|
|Vitoria Guimaraes 1 Sporting Braga 0: Valente header sinks visitors|
|Levante 2 Espanyol 2: Late Victor strike earns struggling hosts a point|
|Football League Review: Middlesbrough edge Norwich in promotion duel, Preston drop points again|
|Nantes 1 Marseille 0: Defensive gaffe leaves visitors´ title challenge in tatters|
|Cambuur 1 Excelsior 1: Record-breaker Ogbeche secures last-gasp draw|
|Eintracht Frankfurt 0 Borussia Monchengladbach 0: Favre´s men held in entertaining draw|
|Arabian Gulf League Review: Al Ain clinch title, Al Jazira humbled by local rivals Bani Yas|
|PSG welcome reduction to Ibrahimovic ban|
|Fournier anticipates improved derby showing from Lyon|
|Anti-Ashley fan protest could inspire Newcastle - Pochettino|
|Toure to stay at City - Pellegrini|
|Newcastle United v Tottenham: Carver pins hopes on Coloccini amid fan boycott plans|
|Manchester City v West Ham: Pellegrini calls for unity|
|Newport terminate Zebroski contract after conviction|
|El Ouriachi nears Stoke switch|
|Inter v Milan: Shaqiri upbeat ahead of first derby|
|Aston Villa v Liverpool: All eyes on Gerrard ahead of Wembley return|
|Sturridge to be given ´every possibility´ to get fit|
|Agbonlahor could make semi-final|
|Simeone: Forget about the Champions League|
|PSG captain Silva to miss Nice game|
|Pellegrini ´not hurt´ by Klopp speculation|
|Mourinho plays down United injury worries|
|A-League Review: Sydney, Phoenix keep hopes up in thrillers|
|Pellegrini fears Kompany´s season may be over|
|Costa in contention for Arsenal clash|
|Title possible but not logical for Van Gaal|
|Iniesta ruled out of Valencia visit|
|Van Gaal searching for answer to United injury ´puzzle´|
|Allardyce backs Koeman for managerial gong|
|Benzema to miss Malaga clash|
|Juventus v Lazio ´a Scudetto game´ - Allegri|
|Guardiola insists he is going nowhere|
|Bolasie worth £20million - Pardew|
|Newcastle fans to feed ducks during Spurs protest|
|Bayern confirm Muller-Wohlfahrt resignation|
|Balotelli most-targeted player for hate crimes on social media|
|Ancelotti: No calls from Manchester City|
|Pardew revels in ´a tremendous season´|
|Watzke hopes for swift Dortmund appointment|
|Atleti a different beast under Simeone, says Forlan|
|Di Maria suspension behind United resurgence, claims Scholes|
|Mertesacker hopes Klopp takes foreign challenge|
|Dyche demands diving answers|
|Skrtel ready for Benteke test|
|Mertesacker: Arsenal should manage Wembley pressure|
|Copa Libertadores Review: Wanderers advance, Palestino miss out|
|New York City 1 Philadelphia Union 1: Another late show frustrates hosts|
|Webb re-elected as CONCACAF president|
|Emery wary of Russia trip|
|Terry ´no chance´ of England return - Capello|
|Fatigue hurt us - Villas-Boas|
|Benitez praises ´spectacular´ Napoli|
|Brugge captain Simons accepts goalless draw|