mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 05:38:15 +02:00
core/tests: add test for nm_match_spec_device() to match "except:*"
We also allow negative matches for plain "*", meaning to explicitly not manage anything.
This commit is contained in:
parent
ab6e370195
commit
2ab946502d
1 changed files with 4 additions and 0 deletions
|
|
@ -1073,6 +1073,10 @@ test_match_spec_device (void)
|
|||
S ("em\\", "em\\*", "em\\1", "em\\11", "em\\2"),
|
||||
NULL,
|
||||
NULL);
|
||||
_do_test_match_spec_device ("except:*",
|
||||
NULL,
|
||||
S (NULL),
|
||||
S ("a"));
|
||||
_do_test_match_spec_device ("interface-name:=em*",
|
||||
S ("em*"),
|
||||
NULL,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue