Fix the bug which did not kill the processes with pids that had
a zero in them. Also, some tests do a AT_CHECK([kill `cat pid`]) which
on windows prints something on the stdout causing the tests to fail.
So supress it.

Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>
---
 tests/testsuite.at |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/testsuite.at b/tests/testsuite.at
index d7e5a7d..012733c 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -58,7 +58,7 @@ if test "$IS_WIN32" = "yes"; then
                 for i in $*; do
                     # tasklist will always have return code 0.
                     # If pid does exist, there will be a line with the pid.
-                    if tasklist //fi "PID eq $i" | grep $i; then
+                    if tasklist //fi "PID eq $i" | grep $i >/dev/null; then
                         :
                     else
                         return 1
@@ -69,12 +69,12 @@ if test "$IS_WIN32" = "yes"; then
             -[1-9]*)
                 shift
                 for i in $*; do
-                    taskkill //F //PID $i
+                    taskkill //F //PID $i >/dev/null
                 done
                 ;;
-            [1-9][1-9]*)
+            [1-9][0-9]*)
                 for i in $*; do
-                    taskkill //F //PID $i
+                    taskkill //F //PID $i >/dev/null
                 done
                 ;;
         esac
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to