diff options
author | Thomas Haller <thaller@redhat.com> | 2017-03-08 16:13:18 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-03-08 16:34:52 +0100 |
commit | 2ab946502d483d147096a0b069d30e945a9086ba (patch) | |
tree | 432dbf6a47afaad87d80b48e27d8b35828bebafb | |
parent | ab6e37019552c9ff0ab4cd3d0e4047bca97a6211 (diff) | |
download | NetworkManager-2ab946502d483d147096a0b069d30e945a9086ba.tar.gz |
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.
-rw-r--r-- | src/tests/test-general.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test-general.c b/src/tests/test-general.c index ef1a4f2b6a..643c912fa2 100644 --- a/src/tests/test-general.c +++ b/src/tests/test-general.c @@ -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, |