From: Nadav Har'El <n...@scylladb.com>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

tests/tst-kill: fix failing test on Linux

We tested that killing a non-existant process 17 resulted in an error.
But on Linux, it is quite possible that process 17 does exist, and this
test will fail. So change it to an even less likely to exist number.

Signed-off-by: Nadav Har'El <n...@scylladb.com>
Message-Id: <20170306134438.22129-1-...@scylladb.com>

---
diff --git a/tests/tst-kill.cc b/tests/tst-kill.cc
--- a/tests/tst-kill.cc
+++ b/tests/tst-kill.cc
@@ -49,7 +49,7 @@ int main(int ac, char** av)
     report(r == 0, "kill with signal 0 succeeds (and does nothing)");
     r = kill(-1, 0);
     report(r == 0, "kill of pid -1 is also fine");
-    r = kill(17, 0);
+    r = kill(17171717, 0);
     report(r == -1 && errno == ESRCH, "kill of non-existant process");
     r = kill(0, -2);
     report(r == -1 && errno == EINVAL, "kill with invalid signal number");

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to