shlist

share and manage lists between multiple people
Log | Files | Refs

commit d7ce548f5b130f49d6aee4c66fdbfca06f1c793f
parent 7b055bc6ff73a0e4532f62effaa48dedafc941e3
Author: Kyle Milz <kyle@0x30.net>
Date:   Fri, 26 Feb 2016 21:48:44 -0700

apnd: add new signal test

Diffstat:
Aapnd/t/signal.t | 13+++++++++++++
Mapnd/test.pl | 4+---
2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/apnd/t/signal.t b/apnd/t/signal.t @@ -0,0 +1,13 @@ +use strict; +use Test; + +BEGIN { plan tests => 1 } + +use APND; +use JSON::XS; + +my $server = APND::Server->new(); +my $socket = APND::Socket->new(); + +$server->kill(); +ok($server->readline(), "/caught signal terminated: shutting down/"); diff --git a/apnd/test.pl b/apnd/test.pl @@ -4,6 +4,4 @@ use warnings; use TAP::Harness; my $harness = TAP::Harness->new({}); - -my @test_files = ("t/non_ios.t", "t/bad_msg.t"); -$harness->runtests(@test_files); +$harness->runtests(glob("t/*.t"));