function test_queue_destroy(destroy_func: GLib.DestroyNotify, destroy_data: void): void {
    // Gjs wrapper for g_test_queue_destroy()

This function enqueus a callback destroy_func to be executed during the next test case teardown phase. This is most useful to auto destruct allocted 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.

Since 2.16


Destroy callback for teardown phase.


Destroy callback data.