enable hardening build flags
[debian/amanda] / installcheck / amadmin.pl
index 84d364ba07d8103ba09583bee894e1699cdf7926..38681174096643c454ba26532ea1f025d9a08522 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2009 Zmanda, Inc.  All Rights Reserved.
+# Copyright (c) 2009, 2010 Zmanda, Inc.  All Rights Reserved.
 #
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License version 2 as published
@@ -16,7 +16,9 @@
 # Contact information: Zmanda Inc, 465 S Mathilda Ave, Suite 300
 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
 
-use Test::More tests => 16;
+use Test::More tests => 17;
+use strict;
+use warnings;
 
 use lib "@amperldir@";
 use Installcheck::Config;
@@ -115,3 +117,6 @@ like(run_get('amadmin TESTCONF force localhost share-\*'),
 amadmin: localhost:\\\\windows\\share-b is set to a forced level 0 at next run.$/,
    "shell 12");
 
+like(run_get('amadmin TESTCONF force localhost share-a share-a'),
+   qr/^amadmin: localhost:\\\\windows\\share-a is set to a forced level 0 at next run.$/,
+   "shell 13");