Hi,
Some unit tests in the test_expand.sl file fail in this particular case:
$ HOME="/home/rlaboiss/" make -C src runtests
make: Entering directory '/var/data/rlaboiss/debian/PKGS/jed/jed/src'
./test/runtests.sh /var/data/rlaboiss/debian/PKGS/jed/jed/src/objs/jed
Running /var/data/rlaboiss/debian/PKGS/jed/jed/src/objs/jed -script ./test/test_cmode.sl
Running /var/data/rlaboiss/debian/PKGS/jed/jed/src/objs/jed -script ./test/test_expand.sl
expand_filename (~/foo) -> /home/rlaboiss/foo, expected /home/rlaboiss//foo
expand_filename (/foo/bar/~/xx/..) -> /home/rlaboiss/, expected /home/rlaboiss//
expand_filename (/foo/bar/~/~/xx/..) -> /home/rlaboiss/, expected /home/rlaboiss//
expand_filename (~/foo/bar/~/~/xx/..) -> /home/rlaboiss/, expected /home/rlaboiss//
expand_filename (~/foo/bar/~/~xx) -> /home/rlaboiss/~xx, expected /home/rlaboiss//~xx
expand_filename (~/foo/bar/~/xx~) -> /home/rlaboiss/xx~, expected /home/rlaboiss//xx~
expand_filename (~/foo/bar/~) -> /home/rlaboiss/foo/bar/~, expected /home/rlaboiss//foo/bar/~
Running /var/data/rlaboiss/debian/PKGS/jed/jed/src/objs/jed -script ./test/test_links.sl
/tmp/jedtest19398.1448637/A/dev/hoo and /tmp/jedtest19398.1448637/A/dev/foo are the same
Running /var/data/rlaboiss/debian/PKGS/jed/jed/src/objs/jed -script ./test/test_narrow.sl
Running /var/data/rlaboiss/debian/PKGS/jed/jed/src/objs/jed -script ./test/test_region.sl
Running /var/data/rlaboiss/debian/PKGS/jed/jed/src/objs/jed -script ./test/test_replace.sl
Running /var/data/rlaboiss/debian/PKGS/jed/jed/src/objs/jed -script ./test/test_search.sl
make: *** [Makefile:310: runtests] Error 1
make: Leaving directory '/var/data/rlaboiss/debian/PKGS/jed/jed/src'
The problem arises because there is a trailing slash in the HOME
environment variable. This is one of the problematic unit tests:
test_expand_filename ("~/foo", "$HOME/foo"$);
This happens because the expand_filename command sanitizes the resulting
path, by removing the multiple slashes, among other things.
This could, theoretically, be fixed as:
test_expand_filename ("~/foo", jed_standardize_filename ("$HOME/foo"$));
However, the function jed_standardize_filename, defined in
src/sysdep.c is not exported in SLang.
Best,
Rafael Laboissi?re
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.