The 22-year-old striker of Senegalese origin plays for St. Etienne. He was the big surprise on France's short list of 30 players and was considered a long shot on a team whose forward candidates include such stars as Thierry Henry, Karim Benzema, Nicolas Anelka, Hatem Ben Arfa and Djibril Cisse.
"I don't think I'll sleep very well tonight. I think of the seven that will be left out," France coach Raymond Domenech said. "[Gomis] is not here by chance. He has qualities, like the other strikers have. I hope he has a long career in the French team because he has the ability."
In other friendlies involving Euro '08 finalists on Tuesday, Vitaly Bulyga scored twice in the last 30 minutes to give Belarus a 2-2 tie with Germany that raised doubts about the German backline.
Jan Koller showed why he is critical to the Czech Republic's success at Euro '08 by scoring twice in a 2-0 victory over Lithuania.
Austria tied Nigeria, 1-1. Roman Kienast scored for the Euro '08 co-hosts, who have one victory in their last 15 matches.
Maciej Zurawski scored in the third minute to give Poland a 1-0 win over Albania. The game was the second in two days for the Poles, who tied Macedonia, 1-1, on Monday. Coach Leo Beenhaaker used mostly first-team players against Albania, while he gave his younger players a chance against Macedonia.