Next: , Previous: , Up: Unit testing   [Contents][Index]


6.2 Running unit tests

The native DejaGnu unit testing support is provided by a library module dejagnu.exp and the procedure host_execute is called by testsuite code to run unit tests.

host_execute program arguments

The host_execute procedure runs program, passing arguments on the command line, and examines the output for test result messages according to the DejaGnu unit testing protocol.

If successful, the return value is an empty string. Otherwise, an error message is returned.