From acc1bc9918d17081a54aab38ee86f124f8e4f458 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 12 Nov 2018 13:20:20 +0900 Subject: [PATCH] test: make test-udev accept only check when argc == 2 Follow-up for 110a13202eab6d92678abcde08372d4afac1cc45. --- src/test/test-udev.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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();