fail
Description:
[ Version ( since = "2.30" ) ]
public void fail ()
  public void fail ()
Example: Mark a test as failed:
public static int main (string[] args) {
	Test.init (ref args);
	Test.add_func ("/valadoc/driver-0.14.x", () => {
		// Mark test case as failed
		Test.fail ();
		// Test case is still running until we return / exit:
		message ("still running");
	});
	Test.run ();
	return 0;
}
    
    valac --pkg glib-2.0 GLib.Test.fail.vala
    ./GLib.Test.fail --verbose
  Namespace: GLib.Test
  
  Package: glib-2.0