From: Howard Chu Date: Mon, 26 Oct 2015 11:51:32 +0000 (+0000) Subject: ITS#8216 Windows compat X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=43c4bcd3bfb71946c8c63d31e22bc0548a970336;p=openldap ITS#8216 Windows compat --- 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