From dd7e32f2cbc2ad60bee86d8c3f5dffd436d360be Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Sun, 26 Oct 2014 01:04:13 +0200 Subject: [PATCH] Fix tests --- t/000-tear-env.t | 2 +- t/300-add.t | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/t/000-tear-env.t b/t/000-tear-env.t index afe261a..6cb384f 100644 --- a/t/000-tear-env.t +++ b/t/000-tear-env.t @@ -9,7 +9,7 @@ use Test::Most; chdir 't' or die $!; if (!-d 'etc') { - plan skip_all => 'No need to tear previous env.'; + plan skip_all => 'No need to tear down previous env.'; } ok rm_rf 'etc'; diff --git a/t/300-add.t b/t/300-add.t index 6c8b9cd..58843c8 100644 --- a/t/300-add.t +++ b/t/300-add.t @@ -12,21 +12,24 @@ chdir 't/etc/' or die $!; $ENV{'HOME'} = abs_path ('.vcsh_home'); +chdir '.vcsh_home' or die $!; + eval { touch 'a'; }; die $@ if $@; -system ("./vcsh test1 add 'a'"); +system (".././vcsh test1 add 'a'"); -my $output = `./vcsh status`; +my $output = `.././vcsh status`; diag $output; ok $output eq "test1: -A a -", 'Adding a file worksl'; +A a + +", 'Adding a file works'; done_testing; -- 2.39.5