test_run


Description:


[ Version ( since = "1.18" ) ]
public int test_run ()

Runs the test suite using the units added by calling clutter_test_add.

The typical test suite is composed of a list of functions called by test_run, for instance:

static void unit_foo (void) { ... }

static void unit_bar (void) { ... }

static void unit_baz (void) { ... }

int
main (int argc, char *argv[])
{
clutter_test_init (&argc, &argv);

clutter_test_add ("/unit/foo", unit_foo);
clutter_test_add ("/unit/bar", unit_bar);
clutter_test_add ("/unit/baz", unit_baz);

return clutter_test_run ();
}

Returns:

the exit code for the test suite


Namespace: Clutter
Package: clutter-1.0



2022 vala-language.org