Using Glib Testing framework, I would like to know if开发者_如何学JAVA I can reuse a pointer queued to be freed with g_test_queue_free?
Here's a code sample of what I'm trying to do:
static void some_test()
{
gchar* tmp;
tmp = func_returning_gchar_ptr (...params...);
g_assert(tmp);
g_test_queue_free(tmp);
tmp = func_returning_gchar_ptr (...params...);
g_assert(tmp);
g_test_queue_free(tmp);
...
}
Yes that should be fine
精彩评论