Page 1 of 1

PATCH: UnitTestCPP for Ubuntu and System variables

Posted: Sat Oct 23, 2010 12:43 am
by ilkapo
On Ubuntu the UnitTestCpp does not work, when the user press the "Run as unit test project..." button nothing happen.

For fix the problem I made some change:
  • fix the configure script
    add some MessageBox for warning messages when the unit test starts
    changed the row-split for the process result by detecting the system new line character at runtime
    function PipedProcess::ReadAll avoid to add character 0 to the result string, this can truncate the result
In addition I implement a feauture confugure system environment variable per project. I change the project settings form, in the Environment tab a new TextControl allow to define project environment variables.
Schermata-gef_test Project Settings.png
The project environment variables are set when a project was executed, debugged or when start a unit test.

Here is the patch.
prjenvvar.patch.tar.gz