From ad2b15b88f2cbd694d60f6e445c5f430b54af847 Mon Sep 17 00:00:00 2001 From: d33tah Date: Tue, 3 Sep 2013 01:01:38 +0000 Subject: [PATCH] Make ncat-test.pl work on both Windows and *nix without modification; feel free to revert it if you believe it needs some discussion first. (I find it useful when working from both VM and Linux on a shared directory) --- ncat/test/ncat-test.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ncat/test/ncat-test.pl b/ncat/test/ncat-test.pl index e80ed2447..2f982bcb8 100755 --- a/ncat/test/ncat-test.pl +++ b/ncat/test/ncat-test.pl @@ -18,7 +18,6 @@ use strict; $| = 1; -my $NCAT = "../ncat"; my $HOST = "127.0.0.1"; my $IPV6_ADDR = "::1"; my $PORT = 40000; @@ -27,6 +26,14 @@ my $UNIXSOCK = "ncat.unixsock"; my $UNIXSOCK_TMP = "ncat.unixsock_tmp"; my $WIN32 = $^O eq "MSWin32" || $^O eq "cygwin"; + +my $NCAT; +if ($WIN32) { + $NCAT = "../Debug/ncat.exe"; +} else { + $NCAT = "../ncat"; +} + my $HAVE_SCTP = !$WIN32; my $HAVE_UNIXSOCK = !$WIN32;