From: Martin Mares Date: Wed, 18 Jul 2012 09:14:52 +0000 (+0200) Subject: Signals: Added tests X-Git-Tag: v5.99~150 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=96f3bf4ac1e0ac8f4028212bcc5a2fdf3f7306e6;p=libucw.git Signals: Added tests --- diff --git a/ucw/Makefile b/ucw/Makefile index 75b9c463..742f09ac 100644 --- a/ucw/Makefile +++ b/ucw/Makefile @@ -144,6 +144,7 @@ $(o)/ucw/url.test: $(o)/ucw/url-t $(o)/ucw/gary.test: $(o)/ucw/gary-t $(o)/ucw/time.test: $(o)/ucw/time-conf-t $(o)/ucw/crc.test: $(o)/ucw/crc-t +$(o)/ucw/signames.test: $(o)/ucw/signames-t ifdef CONFIG_UCW_THREADS TESTS+=$(addprefix $(o)/ucw/,asio.test) diff --git a/ucw/signames.t b/ucw/signames.t new file mode 100644 index 00000000..57656935 --- /dev/null +++ b/ucw/signames.t @@ -0,0 +1,20 @@ +# Tests for signames.c + +Name: Name -> number +Run: ../obj/ucw/signames-t +In: SIGKILL + SIGSEGV + sigterm +Out: 9 + 11 + ? + +Name: Number -> name +Run: ../obj/ucw/signames-t +In: #9 + #11 + #0 +Out: SIGKILL + SIGSEGV + ? +