Print Driver Devmode Corruptor Test

Note  This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.

Type: Automated Test

Overview

The Print Driver Devmode Corruptor Test attempts scenarios with good and bad DEVMODE structures to make sure the driver gracefully handles bad data. This test is not meant to have output evaluated.

PrintSpy is enabled for this test. For more information, please go to PrintSpy.

Details

The primary way for applications and users to specify print job settings to the print subsystem is the DEVMODE structure. The print subsystem should treat it as untrusted because it originates from outside the print subsystem. The printer drivers often access this data structure as well.

The Print Driver Devmode Corruptor Test test tool exercises fault injection in the driver-related code paths in the print subsystem and thus checks the driver robustness in dealing with corrupted DEVMODE structures.

This test can generate large quantities of output. You can ignore and discard this output.

Typically, this test prints to a NULL port printer to avoid the physical output.

Run Time: 4 hours

Log File: DevModeCorruptor_DeviceLogger.xml; DevmodeCorrupt.xml

System Restart Required: No

Test Category:

Supported operating systems for Logo or Signature testing:

  • Windows 7

  • Windows Server 2008 R2

  • Windows Vista

  • Windows Server 2003

  • Windows XP

Program:

Requirements

Software Requirements

The test tool requires the following software:

  • Supported operating system (see list above)

  • Software components included with the device that is being tested

Hardware Requirements

The test tool requires the following hardware:

  • Device to be tested

  • Computer that meets the minimum software requirements

  • Windows keyboard

  • Two-button pointing device

  • Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz

  • Hard drive with a minimum of 20 GB available on partition C:

Processor

  • x86

  • x64

  • Itanium

Command Syntax

Command option Description

DevModeCorruptW.exe /printer="<printername>" /stress /Logfile=DevmodeCorrupt.xml /timetorun=4

 

Test Assertions

Windows Logo Program: IMAGING-0030 Printer drivers must be correctly implemented based on the content of the WDK

 

 

Build date: 9/14/2012