Index: tests/testing.c
===================================================================
--- tests/testing.c	(revision 328)
+++ tests/testing.c	(working copy)
@@ -1,3 +1,4 @@
+#include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -31,6 +32,11 @@
 
 #define IS_BLANK(p) ((*(p) == ' ') || (*(p) == '\t') ||		\
                      (*(p) == '\n') || (*(p) == '\r'))
+#ifdef ENABLE_FEN
+#define KILLCMD	"pkill"
+#else
+#define KILLCMD	"killall"
+#endif
 
 static int
 scanCommand(char *line, char **command, char **arg, char **arg2)
@@ -268,13 +274,13 @@
          * okay, it's heavy but that's the simplest way since we do not have
          * the pid(s) of the servers running.
          */
-        ret = system("killall gam_server");
+        ret = system(KILLCMD" gam_server");
         if (ret < 0) {
             fprintf(stderr, "kill line %d: failed to killall gam_server\n",
                     no);
             return (-1);
         }
-        printf("killall gam_server\n");
+        printf(KILLCMD" gam_server\n");
     } else if (!strcmp(command, "disconnect")) {
         if (testState.connected == 0) {
             fprintf(stderr, "disconnect line %d: not connected\n", no);
