X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=nss%2Ftests%2Fpw.c;h=d71d92f5a2d3e60706063dcbec976b210f15d24a;hb=278c50be3d8a8c433aa862d602492112b9f26a67;hp=b832b38d8c3967d19a5b06681fdb1f32b92d1f55;hpb=a3031f694a0d58d23d383346ee848a6c78a1e4b9;p=nsscash%2Fnsscash.git diff --git a/nss/tests/pw.c b/nss/tests/pw.c index b832b38..d71d92f 100644 --- a/nss/tests/pw.c +++ b/nss/tests/pw.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" @@ -321,7 +323,7 @@ static void test_limits(void) { int r; FILE *fh; - const char *nsscache_cmd = "../nsscash convert passwd " + const char *nsscash_cmd = "../nsscash convert passwd " "tests/limits tests/limits.nsscash 2> /dev/null"; // Entries which will not fit in uint16_t, nsscash must abort @@ -333,7 +335,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); @@ -344,7 +346,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); @@ -357,7 +359,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);