Win32 console application "DemoApp.exe" is a simple program which can simulate erraneous program behaviour (exit error code, endless loops, invalid memory access). The required behaviour can be controlled via command line args. More...
Win32 console application "DemoApp.exe" is a simple program which can simulate erraneous program behaviour (exit error code, endless loops, invalid memory access). The required behaviour can be controlled via command line args.
The program may represent the behaviour of a typical test executable during sw development.
Syntax:
DemoApp EXIT_CODE|MEMORY_ACCESS_FAILURE|DIVIDE_BY_ZERO|ENDLESS_LOOP [exitCode]
EXIT_CODE NN
correct program function with simply returning the specified code NN (may be 0 or any other value)
MEMORY_ACCESS_FAILURE
performs an illegal access to a not existing element of std::vector; typical reaction: assert message box
DIVIDE_BY_ZERO
division of zero typically causes a Microsoft system message box
ENDLESS_LOOP
program will hang and consume 100% of processor capacity