From 96f3bf4ac1e0ac8f4028212bcc5a2fdf3f7306e6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 18 Jul 2012 11:14:52 +0200 Subject: [PATCH] Signals: Added tests --- ucw/Makefile | 1 + ucw/signames.t | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 ucw/signames.t 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 + ? + -- 2.39.5