From 43c4bcd3bfb71946c8c63d31e22bc0548a970336 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 26 Oct 2015 11:51:32 +0000 Subject: [PATCH] ITS#8216 Windows compat --- tests/progs/slapd-tester.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tests/progs/slapd-tester.c b/tests/progs/slapd-tester.c index 1354045f3c..69873749c6 100644 --- a/tests/progs/slapd-tester.c +++ b/tests/progs/slapd-tester.c @@ -40,12 +40,18 @@ #include "lber_pvt.h" #include "slapd-common.h" -#define SEARCHCMD "slapd-search" -#define READCMD "slapd-read" -#define ADDCMD "slapd-addel" -#define MODRDNCMD "slapd-modrdn" -#define MODIFYCMD "slapd-modify" -#define BINDCMD "slapd-bind" +#ifdef _WIN32 +#define EXE ".exe" +#else +#define EXE +#endif + +#define SEARCHCMD "slapd-search" EXE +#define READCMD "slapd-read" EXE +#define ADDCMD "slapd-addel" EXE +#define MODRDNCMD "slapd-modrdn" EXE +#define MODIFYCMD "slapd-modify" EXE +#define BINDCMD "slapd-bind" EXE #define MAXARGS 100 #define MAXREQS 5000 #define LOOPS 100 -- 2.39.5