]> mj.ucw.cz Git - libucw.git/commitdiff
Signals: Added tests
authorMartin Mares <mj@ucw.cz>
Wed, 18 Jul 2012 09:14:52 +0000 (11:14 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 18 Jul 2012 09:14:52 +0000 (11:14 +0200)
ucw/Makefile
ucw/signames.t [new file with mode: 0644]

index 75b9c463a5f37d597772a612cadd0b79fff9c746..742f09ac50edd818db1ab2a068fd260f0d6139a0 100644 (file)
@@ -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 (file)
index 0000000..5765693
--- /dev/null
@@ -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
+       ?
+