From 8811161f67657253d11214ede54857f810662a91 Mon Sep 17 00:00:00 2001 From: Mark Glines Date: Mon, 22 Apr 2002 02:24:28 +0000 Subject: added a test framework updated README fixed a couple of bugs in loopback.pl --- perl/test/chmod.t | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 perl/test/chmod.t (limited to 'perl/test/chmod.t') diff --git a/perl/test/chmod.t b/perl/test/chmod.t new file mode 100644 index 0000000..366f89b --- /dev/null +++ b/perl/test/chmod.t @@ -0,0 +1,11 @@ +#!/usr/bin/perl +use test::helper qw($_real $_point); +use Test::More; +plan tests => 4; +chdir($_point); +system("echo frog >file"); +ok(chmod(0644,"file"),"set unexecutable"); +ok(!-x "file","unexecutable"); +ok(chmod(0755,"file"),"set executable"); +ok(-x "file","executable"); +unlink("file"); -- cgit v1.2.3