summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-05-06 09:56:15 -0400
committergumi <git@gumi.ca>2019-05-06 09:56:15 -0400
commitfa6a3682e85d5fbfc8aab6ad3abbc73c2eb15e45 (patch)
treeba89e3dc41534b9ac26a18b99f3f24bd381ed01f
parentb0f6fb4b280b11ba96edbd1841e0c060363130a0 (diff)
downloadevol-tools-fa6a3682e85d5fbfc8aab6ad3abbc73c2eb15e45.tar.gz
evol-tools-fa6a3682e85d5fbfc8aab6ad3abbc73c2eb15e45.tar.bz2
evol-tools-fa6a3682e85d5fbfc8aab6ad3abbc73c2eb15e45.tar.xz
evol-tools-fa6a3682e85d5fbfc8aab6ad3abbc73c2eb15e45.zip
allow to use valgrind/gdb on the test server wrapper
-rwxr-xr-xherculeswrapper/map.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh
index 055acd7..d0cd929 100755
--- a/herculeswrapper/map.sh
+++ b/herculeswrapper/map.sh
@@ -9,7 +9,7 @@ source ${dir}/include.sh
create_pipe
while [ 1 ] ; do
- ./map-server
+ $DEBUG_MAP ./map-server
export ret=$?
case "${ret}" in
0)
@@ -18,7 +18,7 @@ while [ 1 ] ; do
;;
1)
echo "Returned 1. Probably error in server"
- break
+ [ ! -z "$DEBUG_MAP" ] || break
;;
100)
echo "Terminating server"