3 # Test that _darcs/prefs/binaries
6 use Test
::More
'no_plan';
14 my $test = 'binary pattern matches against full path';
16 ok
(mkpath
('d'), "d created");
19 darcs
'record -am "initial record"';
20 append_file
'd/t.t','some change' ;
22 my $out = echo_to_darcs
'record --interactive', 'n' ;
23 unlike
($out, qr/binary/, "pre-test: plain text files are not binary");
25 append_file
'_darcs/prefs/binaries','d/t' ;
27 # we want to see if darcs reports the file as binary or not
28 $out = echo_to_darcs
'record --interactive', 'n' ;
29 like
($out, qr/binary/, $test);