From: Enlightenment C. <no...@cv...> - 2007-11-28 06:15:59
|
Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/bin/tests/filepicker Modified Files: ewl_filepicker.c Log Message: An existing directory is required for directory set to succeed. This path probably needs to be adjusted for windows. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/filepicker/ewl_filepicker.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ewl_filepicker.c 17 Nov 2007 16:57:56 -0000 1.11 +++ ewl_filepicker.c 28 Nov 2007 06:15:57 -0000 1.12 @@ -77,8 +77,8 @@ static int directory_test_path_split(char *buf, int len); static Ewl_Unit_Test filepicker_unit_tests[] = { - {"directory set/get", directory_test_set_get, NULL, -1, 0}, - {"directory path split", directory_test_path_split, NULL, -1, 0}, + {"directory set/get", directory_test_set_get, NULL, -1, 1}, + {"directory path split", directory_test_path_split, NULL, -1, 1}, {NULL, NULL, NULL, -1, 0} }; @@ -153,12 +153,12 @@ fp = ewl_filepicker_new(); ewl_filepicker_directory_set(EWL_FILEPICKER(fp), - "/foo/bar/baz/test"); + "/tmp"); t = ewl_filepicker_directory_get(EWL_FILEPICKER(fp)); - if (strcmp(t, "/foo/bar/baz/test")) + if (strcmp(t, "/tmp")) snprintf(buf, len, "directory_get did not match " - "directory_set"); + "directory_set %s", t); else ret = 1; |