X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=nss%2Ftests%2Fgr.c;h=c50377da9c50765244f46ae1e41a30ca4bb432ea;hb=278c50be3d8a8c433aa862d602492112b9f26a67;hp=487e673b2d84f3363f8363f50ed9a9d9893a289a;hpb=a3031f694a0d58d23d383346ee848a6c78a1e4b9;p=nsscash%2Fnsscash.git diff --git a/nss/tests/gr.c b/nss/tests/gr.c index 487e673..c50377d 100644 --- a/nss/tests/gr.c +++ b/nss/tests/gr.c @@ -1,7 +1,7 @@ /* * Tests for the NSS cash module * - * Copyright (C) 2019 Simon Ruderich + * Copyright (C) 2019-2021 Simon Ruderich * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -23,6 +23,8 @@ #include #include #include +#include +#include #include #include "../cash_nss.h" @@ -336,7 +338,7 @@ static void test_limits(void) { int r; FILE *fh; - const char *nsscache_cmd = "../nsscash convert group " + const char *nsscash_cmd = "../nsscash convert group " "tests/limits tests/limits.nsscash 2> /dev/null"; // Entries which will not fit in uint16_t, nsscash must abort @@ -348,7 +350,7 @@ static void test_limits(void) { r = fclose(fh); assert(r == 0); - r = system(nsscache_cmd); + r = system(nsscash_cmd); assert(r != -1); assert(WIFEXITED(r) && WEXITSTATUS(r) == 1); @@ -359,7 +361,7 @@ static void test_limits(void) { r = fclose(fh); assert(r == 0); - r = system(nsscache_cmd); + r = system(nsscash_cmd); assert(r != -1); assert(WIFEXITED(r) && WEXITSTATUS(r) == 1); @@ -374,7 +376,7 @@ static void test_limits(void) { r = fclose(fh); assert(r == 0); - r = system(nsscache_cmd); + r = system(nsscash_cmd); assert(r != -1); assert(WIFEXITED(r) && WEXITSTATUS(r) == 0);