James Kanze
2009-07-15 14:59:03 UTC
I'm currently porting some library code to Windows (from Unix).
The library code is designed to fail (assertion failure) in case
of illegal input, and the test suite (written in Unix shell, and
executed under Windows using CygWin bash) actually tests
this---it expects the programs to fail, and the test fails if
they don't. The problem is that when the program fails, I get
one of these pop-up windows, stating that "testIncr.exe has
encountered a problem and needs to close", with an offer to
debug or to close. And the test suite hangs until I've clicked
on one of the buttons. Which means that it can't effectively be
used for regression tests.
So how can I inhibit this, so that the test program just returns
some incorrect error code, and the test suite continues?
--
James Kanze (GABI Software) email:***@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
The library code is designed to fail (assertion failure) in case
of illegal input, and the test suite (written in Unix shell, and
executed under Windows using CygWin bash) actually tests
this---it expects the programs to fail, and the test fails if
they don't. The problem is that when the program fails, I get
one of these pop-up windows, stating that "testIncr.exe has
encountered a problem and needs to close", with an offer to
debug or to close. And the test suite hangs until I've clicked
on one of the buttons. Which means that it can't effectively be
used for regression tests.
So how can I inhibit this, so that the test program just returns
some incorrect error code, and the test suite continues?
--
James Kanze (GABI Software) email:***@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34