keyfile/tests: add tests for ignoring keyfile filenames

In particular, have a full path (with slashes), and a filename
with trailing slash (a directory).
This commit is contained in:
Thomas Haller
2018-10-21 19:45:22 +02:00
parent ba6c2211e8
commit 4d8ce80e78

View File

@@ -2503,6 +2503,8 @@ test_nm_keyfile_plugin_utils_escape_filename (void)
_escape_filename (FALSE, ".#emacs-locking", TRUE); _escape_filename (FALSE, ".#emacs-locking", TRUE);
_escape_filename (FALSE, "file-with-tilde~", TRUE); _escape_filename (FALSE, "file-with-tilde~", TRUE);
_escape_filename (FALSE, ".file-with-dot", TRUE); _escape_filename (FALSE, ".file-with-dot", TRUE);
_escape_filename (FALSE, "/some/path/with/trailing/slash/", FALSE);
_escape_filename (FALSE, "/some/path/without/trailing/slash", FALSE);
_escape_filename (TRUE, "lala", TRUE); _escape_filename (TRUE, "lala", TRUE);
} }