Function

GLibtest_queue_destroy

Declaration [src]

void
g_test_queue_destroy (
  GDestroyNotify destroy_func,
  gpointer destroy_data
)

Description [src]

This function enqueus a callback destroy_func to be executed during the next test case teardown phase. This is most useful to auto destruct allocated test resources at the end of a test run. Resources are released in reverse queue order, that means enqueueing callback A before callback B will cause B() to be called before A() during teardown.

Available since:2.16

Parameters

destroy_func GDestroyNotify
 

Destroy callback for teardown phase.

destroy_data gpointer
 

Destroy callback data.