Chelsea's N'Golo Kante scored the winning goal for France as they defeated holders Portugal in the Nations League on Saturday and booked their place in the finals.
Kante, back in the starting XI after coming on as a substitute in the friendly defeat to Finland, bundled in from close range in the second half.
Manchester United's Anthony Martial had earlier headed on to the crossbar.
And Portugal defender Jose Fonte also hit the post in the second half.
Cristiano Ronaldo, who remains seven behind Iran legend Ali Daei's all-time international goals record, was a threat as always but he headed his best chance of the match over the bar in the first half.
He teed up substitute Joao Moutinho late in the second half too but the Wolves midfielder's powerful shot was well saved by France goalkeeper Hugo Lloris.
France had the better of the chances before the break - Rui Patricio saved smartly from Martial on two occasions, while Kingsley Coman looked sharp for the world champions.
They were rewarded in the 53rd minute when Adrien Rabiot's shot was parried by Rui Patricio straight into the path of Kante, who poked it in from two yards out.
The result means France go top of group A3 with one game remaining, while Sweden's 2-1 win over Croatia in Saturday's other match means there remains a battle to avoid relegation.
Latest Stories
-
World-first gonorrhoea vaccine launched by NHS England as infections soar
35 minutes -
EU plans €2 fee on small parcels in hit to Shein and Temu
52 minutes -
Doubts over whether Brits can use EU e-gates this summer
1 hour -
Trump pressures Republicans to back his ‘big beautiful’ tax bill
1 hour -
Zelensky accuses Russia of ‘buying time’ to stall truce talks
1 hour -
Man who helped smuggle more than 3,000 people into Europe jailed
2 hours -
Jennifer Lopez sued in copyright case for posting photos of herself
2 hours -
US congresswoman charged with assault outside immigration centre
2 hours -
Court orders mental evaluation for extradited Togolese robbery suspect
2 hours -
Police destroy 120 changfang machines at Wassa Gyapa
4 hours -
‘Order from above’ keeps traders on the streets – Dr Oduro Osae
4 hours -
Lax bylaw enforcement to blame for traders’ street chaos – Dr Oduro Osae
5 hours -
Dram Oil requires recoveries from Alfapetro Ghana Ltd in alleged contract breach
5 hours -
Reduce squad size or I’ll quit – Guardiola to Man City
5 hours -
Talensi schoolgirls abandon classrooms for ‘wife duties’ at illegal mining sites
5 hours