1. An image forming apparatus, comprising: a detection portion for detecting occurrence of an earthquake; a plurality of types of job execution portions that each execute a job; an output portion that outputs information; and a control portion that controls the job execution portions, upon the detection portion detecting the occurrence of an earthquake, switches a mode of the image forming apparatus from a normal mode to an emergency mode, after a lapse of a predetermined wait time since the switching to the emergency mode, executes a self-diagnosis process for checking whether or not the job execution portions operate properly, based on a result of the self-diagnosis process, determines an executable job and a non-executable job, and makes the output portion output information indicating the executable job and the non-executable job.