summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-11-12 13:20:20 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-12 16:32:10 +0900
commitacc1bc9918d17081a54aab38ee86f124f8e4f458 (patch)
tree7ffd5d76227e0fd6ae59eead2e630b0005acf58f /src/test
parentbf877a54c7d52945e8d0d1e96a14f35181410fb2 (diff)
downloadsystemd-acc1bc9918d17081a54aab38ee86f124f8e4f458.tar.gz
test: make test-udev accept only check when argc == 2
Follow-up for 110a13202eab6d92678abcde08372d4afac1cc45.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-udev.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/test-udev.c b/src/test/test-udev.c
index 9f3aba70ab..102da4adc6 100644
--- a/src/test/test-udev.c
+++ b/src/test/test-udev.c
@@ -69,8 +69,14 @@ int main(int argc, char *argv[]) {
if (fake_filesystems() < 0)
return EXIT_FAILURE;
- if (argc == 2)
+ if (argc == 2) {
+ if (!streq(argv[1], "check")) {
+ log_error("Unknown argument: %s", argv[1]);
+ return EXIT_FAILURE;
+ }
+
return EXIT_SUCCESS;
+ }
log_debug("version %s", PACKAGE_VERSION);
mac_selinux_init();