What gas is produced by the reaction of magnesium and HCl as evidenced by the "poof" test?

acids react with active metals to yield hydrogen gas and a salt.