For Macs, this test could be updated. The swap partition will not be in an extended partition on Mac.