aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-03-25 12:06:03 +0100
committerAngelo Naselli <anaselli@linux.it>2015-03-25 12:06:03 +0100
commit7d4134a7fdc5651e90b7aefbda95c5a1998ec3c6 (patch)
treed2c504a1ad271a57c9fbce23eb84f9ea9820f0a2 /t
parent031f000833f385de8bc5142c571aec73399b4a1a (diff)
downloadmanatools-7d4134a7fdc5651e90b7aefbda95c5a1998ec3c6.tar
manatools-7d4134a7fdc5651e90b7aefbda95c5a1998ec3c6.tar.gz
manatools-7d4134a7fdc5651e90b7aefbda95c5a1998ec3c6.tar.bz2
manatools-7d4134a7fdc5651e90b7aefbda95c5a1998ec3c6.tar.xz
manatools-7d4134a7fdc5651e90b7aefbda95c5a1998ec3c6.zip
fixed ntp_program attribute initialization and added its test
Diffstat (limited to 't')
-rw-r--r--t/04-Shared_TimeZone.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/04-Shared_TimeZone.t b/t/04-Shared_TimeZone.t
index 9f286cce..21dd2e72 100644
--- a/t/04-Shared_TimeZone.t
+++ b/t/04-Shared_TimeZone.t
@@ -14,6 +14,8 @@ BEGIN {
ok (my @l = $tz->getTimeZones(), 'getTimeZones');
ok (my $h = $tz->readConfiguration(), 'readConfiguration');
diag Dumper($h);
+ ok (my $currService = $tz->ntp_program(), 'ntp_program');
+ diag "ntp_program got: < " . $currService . " >";
ok (my $s = $tz->ntpCurrentServer(), 'currentNTPServer');
diag "ntpCurrentServer got: < " . ($s ? $s : "none") . " >";
ok (my $a = ($tz->isNTPRunning() ? "running" : "not running"), 'isNTPRunning');