X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/dda9802233e27008cdd3206d4474be69d54a55b0..fbb40d76e1e3adcd6466c1a8f1e1b562e785f38c:/t/300-add.t?ds=inline diff --git a/t/300-add.t b/t/300-add.t index f16f6e1..24d9a8a 100644 --- a/t/300-add.t +++ b/t/300-add.t @@ -12,21 +12,22 @@ chdir 't/etc/' or die $!; $ENV{'HOME'} = abs_path ('.vcsh_home'); +chdir '.vcsh_home' or die $!; + eval { touch 'a'; }; die $@ if $@; -system ("./vcsh -d test1 add 'a'"); - -my $output = `./vcsh status`; +system (".././vcsh test1 add 'a'"); -diag $output; +my $output = `.././vcsh status`; ok $output eq "test1: -A a -", 'Adding a file worksl'; +A a + +", 'Adding a file works'; done_testing;