30 #include "test-stuff.h"
45 G_DIR_SEPARATOR_S
".gnucash" G_DIR_SEPARATOR_S
"test-account-name",
46 G_DIR_SEPARATOR_S
".gnucash" G_DIR_SEPARATOR_S
"test-account-name", 1
49 G_DIR_SEPARATOR_S
"tmp" G_DIR_SEPARATOR_S
"test-account-name2",
50 G_DIR_SEPARATOR_S
"tmp" G_DIR_SEPARATOR_S
"test-account-name2", 0
58 main(
int argc,
char **argv)
64 for (i = 0; strs[i].input != NULL; i++)
70 if (strs[i].prefix_home == 1)
72 dain = g_build_filename(g_get_home_dir(), strs[i].input,
74 wantout = g_build_filename(g_get_home_dir(), strs[i].output,
77 else if (strs[i].prefix_home == 2)
79 dain = g_strdup(strs[i].input);
80 wantout = g_build_filename(g_get_home_dir(), strs[i].output,
85 dain = g_strdup(strs[i].input);
86 wantout = g_strdup(strs[i].output);
90 do_test_args(g_strcmp0(daout, wantout) == 0,
91 "gnc_resolve_file_path",
93 "%s (%s) vs %s", daout, dain, wantout);
gchar * gnc_resolve_file_path(const gchar *filefrag)
Create an absolute path when given a relative path; otherwise return the argument.
File path resolution utility functions.
void qof_init(void)
Initialise the Query Object Framework.