]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blobdiff - nss/tests/gr.c
Update copyright years
[nsscash/nsscash.git] / nss / tests / gr.c
index 487e673b2d84f3363f8363f50ed9a9d9893a289a..c50377da9c50765244f46ae1e41a30ca4bb432ea 100644 (file)
@@ -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 <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 #include <unistd.h>
 
 #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);