mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 06:00:08 +01:00
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:
parent
ba6c2211e8
commit
4d8ce80e78
1 changed files with 2 additions and 0 deletions
|
|
@ -2503,6 +2503,8 @@ test_nm_keyfile_plugin_utils_escape_filename (void)
|
|||
_escape_filename (FALSE, ".#emacs-locking", TRUE);
|
||||
_escape_filename (FALSE, "file-with-tilde~", 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue