Philipp Marek wrote, On 08/05/06 11:55:
r275 seems to fix 011 but 016 fails (it's also the case under 1.0.6 with
the same error).
        
I believe I fixed this problem in the current trunk.
  
hmmm..  Trunk revision: 287 returns an error on 011 / 016... are you sure your patch has been checked in?
It didn't make it into 1.0.7, but there should be a 1.0.8 soon ... :-)

The problem is that your machine is too fast for this test ... on my (old) 
machine the test took longer, so the directory got newer timestamps, while in 
your setup the timestamps are all in the same second -> fsvs sees no 
difference!
  
May be because it's a SMP box...

Ben

~~~~~~~~~~~~~~~~~

 ./fsvs -V
Version trunk:279

# make run-tests TEST_LIST=011* VERBOSE=1
make -C test BINARY=/devworld/src/fsvs-trunk/fsvs/src/fsvs
make[1]: Entering directory `/devworld/src/fsvs-trunk/fsvs/src/test'
Running tests...

_______________________________________________________
  011_ignore (Mon May 8 12:19:34 EDT 2006)
+ alias 'rm=rm -i'
+ alias 'cp=cp -i'
+ alias 'mv=mv -i'
+ '[' -f /etc/bashrc ']'
+ . /etc/bashrc
+++ id -gn
+++ id -un
+++ id -u
++ '[' root = root -a 0 -gt 99 ']'
++ umask 022
++ '[' '' ']'
+ set -e
+ make -s -C /devworld/src/fsvs-trunk/fsvs/src/test prepare_clean
+ cd /tmp/fsvs-test-0/wc
+ export PREFIX=igntest
+ PREFIX=igntest
+ export TAKE=TAKE
+ TAKE=TAKE
+ export IGNORE=IGN
+ IGNORE=IGN
+ export POSTFIX=txt
+ POSTFIX=txt
+++ pwd
++ /devworld/src/fsvs-trunk/fsvs/src/test/path2spool /tmp/fsvs-test-0/wc
+ ign_file=/var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937//ign
+ test -e /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937//ign
+ find . -depth -iname '*igntest*txt' -exec rm -rf '{}' ';'
+ DIRLIST=. ign-dir1 IGN-s-dir2 ign-dir2/sub ign-dir2/IGN-p-dir3
+ mkdir -p .
+ mkdir -p ign-dir1
+ mkdir -p IGN-s-dir2
+ mkdir -p ign-dir2/sub
+ mkdir -p ign-dir2/IGN-p-dir3
+ /devworld/src/fsvs-trunk/fsvs/src/fsvs -q ci -m 'create dirs'
committed revision      3 on 2006-05-08T16:19:35.288406Z as root
+ /devworld/src/fsvs-trunk/fsvs/src/test/up_st_cmp
     ** up
Updated to revision     3.
     ** st
     ** compare
----- comparison of directory gave no differences
+ M .
+ test -d .
++ seq 1 1
+ echo s.TAKE.1
++ seq 1 1
+ echo s.IGN.1
++ seq 1 1
+ echo p.TAKE.1
++ seq 1 1
+ echo p.IGN.1
+ M ign-dir1
+ test -d ign-dir1
++ seq 1 1
+ echo s.TAKE.1
++ seq 1 1
+ echo s.IGN.1
++ seq 1 1
+ echo p.TAKE.1
++ seq 1 1
+ echo p.IGN.1
+ M IGN-s-dir2
+ test -d IGN-s-dir2
++ seq 1 1
+ echo s.TAKE.1
++ seq 1 1
+ echo s.IGN.1
++ seq 1 1
+ echo p.TAKE.1
++ seq 1 1
+ echo p.IGN.1
+ M ign-dir2/sub
+ test -d ign-dir2/sub
++ seq 1 1
+ echo s.TAKE.1
++ seq 1 1
+ echo s.IGN.1
++ seq 1 1
+ echo p.TAKE.1
++ seq 1 1
+ echo p.IGN.1
+ M ign-dir2/IGN-p-dir3
+ test -d ign-dir2/IGN-p-dir3
++ seq 1 1
+ echo s.TAKE.1
++ seq 1 1
+ echo s.IGN.1
++ seq 1 1
+ echo p.TAKE.1
++ seq 1 1
+ echo p.IGN.1
++ /devworld/src/fsvs-trunk/fsvs/src/fsvs st
++ grep txt
++ wc -l
+ all_new=      0
++ /devworld/src/fsvs-trunk/fsvs/src/fsvs st
++ grep txt
++ wc -l
++ grep TAKE
+ take_new=      0
++ /devworld/src/fsvs-trunk/fsvs/src/fsvs st
++ grep txt
++ grep TAKE
+ take_new_list=
----++---- /devworld/src/fsvs-trunk/fsvs/src/test/011_ignore failed ----++----
make[1]: *** [run_tests] Error 1
make[1]: Leaving directory `/devworld/src/fsvs-trunk/fsvs/src/test'
make: *** [run-tests] Error 2


# ./fsvs st -d /tmp/fsvs-test-0/wc
12:18:55.660 main[fsvs.c:371] LC_ALL gives en_US.UTF-8
12:18:55.660 main[fsvs.c:378] LC_CTYPE gives en_US.UTF-8
12:18:55.660 main[fsvs.c:389] codeset found to be UTF-8
12:18:55.660 main[fsvs.c:397] codeset: using identity
12:18:55.660 main[fsvs.c:443] optind=3 heap=0x805f000 per_sts=164 action=""> 12:18:55.661 waa__open[waa.c:305] reading target /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937/ign
12:18:55.661 ign__load_list[ignore.c:390] no ignore list found
12:18:55.661 waa__open[waa.c:305] reading target /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937/dir
12:18:55.661 waa__open[waa.c:318] got fh 3
12:18:55.661 waa__input_tree[waa.c:1098] mmap()ping 440 bytes
12:18:55.661 waa__input_tree[waa.c:1140] reading 1024 subdirs, 6 entries, 49 bytes string-space
12:18:55.661 waa__input_tree[waa.c:1150] ok, found \0 or \0\n at end
12:18:55.661 waa__input_tree[waa.c:1167] curr=0x40017040, end=0x400171b8, count=6
12:18:55.661 ops__allocate[est_ops.c:660] need 6 blocks
12:18:55.661 ops__allocate[est_ops.c:697] no freelist, allocating
12:18:55.661 waa__input_tree[waa.c:1183] about to parse 0x40017040 = '0042755 445f6edb 445f6edb 0 nd x 4096 3 ...'
12:18:55.662 ops__build_path[est_ops.c:496] need 1024 bytes
12:18:55.662 ops__build_path[est_ops.c:510] new cache 0
12:18:55.662 ops__build_path[est_ops.c:524] reallocated cache 0
12:18:55.662 ops__build_path[est_ops.c:542] status=0; path=.
12:18:55.662 ops___stat_to_action[est_ops.c:226] change = 0
12:18:55.662 ops__update_single_entry[est_ops.c:1039] existing .: action="" flags=0, status=0
12:18:55.662 waa__input_tree[waa.c:1167] curr=0x40017079, end=0x400171b8, count=5
12:18:55.662 waa__input_tree[waa.c:1183] about to parse 0x40017079 = '0042755 445f6edb 445f6edb 0 nd x 4096 3 ...'
12:18:55.662 ops__build_path[est_ops.c:496] need 1024 bytes
12:18:55.662 ops__build_path[est_ops.c:510] new cache 1
12:18:55.662 ops__build_path[est_ops.c:524] reallocated cache 1
12:18:55.662 ops__build_path[est_ops.c:542] status=0; path=./ign-dir1
12:18:55.662 ops___stat_to_action[est_ops.c:226] change = 0
12:18:55.662 ops__update_single_entry[est_ops.c:1039] existing ./ign-dir1: action="" flags=0, status=0
12:18:55.662 waa__input_tree[waa.c:1167] curr=0x400170b9, end=0x400171b8, count=4
12:18:55.662 waa__input_tree[waa.c:1183] about to parse 0x400170b9 = '0042755 445f6edb 445f6edb 0 nd x 4096 3 ...'
12:18:55.662 ops__build_path[est_ops.c:496] need 1024 bytes
12:18:55.662 ops__build_path[est_ops.c:510] new cache 2
12:18:55.662 ops__build_path[est_ops.c:524] reallocated cache 2
12:18:55.662 ops__build_path[est_ops.c:542] status=0; path=./IGN-s-dir2
12:18:55.662 ops___stat_to_action[est_ops.c:226] change = 0
12:18:55.662 ops__update_single_entry[est_ops.c:1039] existing ./IGN-s-dir2: action="" flags=0, status=0
12:18:55.662 waa__input_tree[waa.c:1167] curr=0x400170fb, end=0x400171b8, count=3
12:18:55.662 waa__input_tree[waa.c:1183] about to parse 0x400170fb = '0042755 445f6edb 445f6edb 0 nd x 4096 3 ...'
12:18:55.662 ops__build_path[est_ops.c:496] need 1024 bytes
12:18:55.662 ops__build_path[est_ops.c:510] new cache 3
12:18:55.662 ops__build_path[est_ops.c:524] reallocated cache 3
12:18:55.662 ops__build_path[est_ops.c:542] status=0; path=./ign-dir2
12:18:55.662 ops___stat_to_action[est_ops.c:226] change = 0
12:18:55.663 ops__update_single_entry[est_ops.c:1039] existing ./ign-dir2: action="" flags=0, status=0
12:18:55.663 waa__input_tree[waa.c:1167] curr=0x4001713b, end=0x400171b8, count=2
12:18:55.663 waa__input_tree[waa.c:1183] about to parse 0x4001713b = '0042755 445f6edb 445f6edb 0 nd x 4096 3 ...'
12:18:55.663 ops__build_path[est_ops.c:496] need 1024 bytes
12:18:55.663 ops__build_path[est_ops.c:510] new cache 4
12:18:55.663 ops__build_path[est_ops.c:524] reallocated cache 4
12:18:55.663 ops__build_path[est_ops.c:542] status=0; path=./ign-dir2/sub
12:18:55.663 ops___stat_to_action[est_ops.c:226] change = 0
12:18:55.663 ops__update_single_entry[est_ops.c:1039] existing ./ign-dir2/sub: action="" flags=0, status=0
12:18:55.663 waa__input_tree[waa.c:1167] curr=0x40017176, end=0x400171b8, count=1
12:18:55.663 waa__input_tree[waa.c:1183] about to parse 0x40017176 = '0042755 445f6edb 445f6edb 0 nd x 4096 3 ...'
12:18:55.663 ops__build_path[est_ops.c:496] need 1024 bytes
12:18:55.663 ops__build_path[est_ops.c:510] new cache 5
12:18:55.663 ops__build_path[est_ops.c:524] reallocated cache 5
12:18:55.663 ops__build_path[est_ops.c:542] status=0; path=./ign-dir2/IGN-p-dir3
12:18:55.663 ops___stat_to_action[est_ops.c:226] change = 0
12:18:55.663 ops__update_single_entry[est_ops.c:1039] existing ./ign-dir2/IGN-p-dir3: action="" flags=0, status=0
12:18:55.663 waa__read_or_build_tree[waa.c:1315] read tree = 0
12:18:55.663 main[fsvs.c:477] heap=0x8067000

Reply via email to