From 83c97773d846f04f47d62b532e3e44b7917f9f96 Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Sat, 11 Feb 2017 11:07:56 +0100 Subject: [PATCH] t/file/filesystem.t robuster --- t/file/filesystem.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/file/filesystem.t b/t/file/filesystem.t index cd033a7fc..fd648e84e 100644 --- a/t/file/filesystem.t +++ b/t/file/filesystem.t @@ -84,7 +84,9 @@ eval { } or do { $result=$@; }; -ok($result eq "No object type at SL/Controller/File.pm line 327.\n","correct error 'No object type'"); +$result = substr($result,0,14); +print $result."\n"; +ok($result eq "No object type","correct error 'No object type'"); $::form->{object_type} ='sales_order'; $::form->{file_type} =''; @@ -96,7 +98,9 @@ eval { } or do { $result=$@; }; -ok($result eq "No file type at SL/Controller/File.pm line 328.\n","correct error 'No file type'"); +$result = substr($result,0,12); +print $result."\n"; +ok($result eq "No file type","correct error 'No file type'"); clear_up(); done_testing; -- 2.20.1