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:
Thomas Haller 2017-03-08 16:13:18 +01:00
parent ab6e370195
commit 2ab946502d

View file

@ -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,