more diagnostics for remote debug

This commit is contained in:
Colin Kuskie 2006-08-08 20:17:25 +00:00
parent 000b2fcce3
commit a5d38396a1

View file

@ -32,8 +32,11 @@ my $storage = WebGUI::Storage->createTemp($session);
$storage->addFileFromScalar('goodFile', $goodFile);
$storage->addFileFromScalar('twoLines', $twoLines);
$storage->addFileFromScalar('unreadableFile', 'The contents of this file are not readable');
chmod(0111, $storage->getPath('unreadableFile')) or
my $unreadable = $storage->getPath('unreadableFile');
diag(sprintf "original mode: %o", (stat $unreadable)[2]);
chmod(0111, $unreadable) or
diag("Unable to chmod file.");
diag(sprintf "modified mode: %o", (stat $unreadable)[2]);
my @testSets = (
{