BUG in 2.6.0: make test failes if build dir is not source dir

Stefan Nehlsen sn at ParlaNet.de
Wed Jan 7 11:49:52 GMT 2004


There is a small bug in the build system of 2.6.0:

If the directory you build rsync in differs from the sourcedir "make test"
failes:

$ tar -xzf ~/rsync-2.6.0.tar.gz
$ mkdir build
$ cd build
$ ../rsync-2.6.0/configure
....
$ make test
....
PASS    unsafe-byname
PASS    unsafe-links
----- wildmatch log follows
Testing for symlinks using 'test -h'
+ /tmp/bla/build/wildtest
Unable to open wildtest.txt.
----- wildmatch log ends
FAIL    wildmatch
------------------------------------------------------------
----- overall results:
      14 passed
      1 failed
      3 skipped
------------------------------------------------------------
overall result is 1
make: *** [check] Fehler 1


The problem is in wildtest.c :

    if ((fp = fopen("wildtest.txt", "r")) == NULL) {
        fprintf(stderr, "Unable to open wildtest.txt.\n");
        exit(1);
    }


cu, Stefan
-- 
Stefan Nehlsen | ParlaNet Administration | sn at parlanet.de | +49 431 988-1260


More information about the rsync mailing list