Primary and secondary alcohols oxidize to aldehydes and ketones, which give a positive 2,4-DNP test. Tertiary alcohols like 2-methylpropan-2-ol are resistant to oxidation under these conditions and would likely form an alkene, which does not react with 2,4-DNP.