Function

GLibtest_get_dir

Declaration [src]

const gchar*
g_test_get_dir (
  GTestFileType file_type
)

Description [src]

Gets the pathname of the directory containing test files of the type specified by file_type.

This is approximately the same as calling g_test_build_filename(“.”), but you don’t need to free the return value.

Available since:2.38

Parameters

file_type GTestFileType
 

The type of file (built vs. distributed)

Return value

Returns: const gchar*
 

The path of the directory, owned by GLib.

 The data is owned by the called function.
 The string is a file system path, using the OS encoding.