Function
GLibtest_get_dir
since: 2.38
Declaration [src]
constgchar*
g_test_get_dir(
GTestFileTypefile_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-
Type:
GTestFileTypeThe type of file (built vs. distributed).
Return value
Type: const gchar*
The path of the directory, owned by GLib.
The data is owned by the called function.
The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.