X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-userspec.c;h=8e3672f597d9268fb47e6572b60561a8c9a6c7b6;hb=5068051817bc09c088f31d3627956bfe5086b130;hp=5b0266485a7c35f22c04d275b00be50a34e687da;hpb=9fc81090f6c5590bd1b0e0fa5087577a2ee43a3e;p=gnulib.git diff --git a/tests/test-userspec.c b/tests/test-userspec.c index 5b0266485..8e3672f59 100644 --- a/tests/test-userspec.c +++ b/tests/test-userspec.c @@ -181,6 +181,17 @@ main (void) } } + /* Ensure NULL parameters are ignored. */ + { + uid_t uid = (uid_t) -1; + char const *diag = parse_user_spec ("", &uid, NULL, NULL, NULL); + if (diag) + { + printf ("unexpected error: %s\n", diag); + fail = 1; + } + } + return fail; }