1. Remove the sunroof switch.
2. Inspect for continuity between the sunroof switch terminals using an ohmmeter.
Mazda 6 Service Manual: Abs (abs/tcs) hu/cm system inspection
System Inspection
Preparation
1. Verify that the battery is fully charged. With the ignition switch on,
verify that the ABS and BRAKE system warning lights goes out after 2.4
seconds.
2. If the lights stays on after 2.4 seconds, the ABS (ABS/TCS) HU/CM
detects a failure. Follow the troubles ...
Mazda 6 Service Manual: Contact Authorized Mazda Dealer and Have Vehicle Inspected
If any of the following warning lights or the indicator light turns on/flashes,
the system may have a malfunction. Contact an Authorized Mazda Dealer to have your
vehicle inspected.
...