An image-forming apparatus having an inkjet type printer is configured to prevent ink from being wastefully consumed through a purge processing. Before next purge processing is executed, test printing is carried out. The user looks at the result of the test printing and inputs instruction indicating whether or not the next purge processing is to be executed. If the inputted instruction indicates that immediate purge processing is unnecessary, execution of the purge processing is prolonged. In this manner, a purge processing is not automatically executed but executed only when the test printing indicates that an ejection condition of ink is no good.