8.5.16 build : swipl:files and jpl:java_in_prolog test failed

Hi,

On my Debian11 PC, after running ctest -j 8, two tests failed. The summary at the end of the test process shows :

98% tests passed, 2 tests failed out of 80

Total Test time (real) =  11.71 sec

The following tests FAILED:
	 15 - swipl:files (Failed)
	 78 - jpl:java_in_prolog (SEGFAULT)

It seems that test_file_names.pl is the culprit :

src/swipl ../src/Tests/files/test_file_names.pl 
Welcome to SWI-Prolog (threaded, 64 bits, version 8.5.16-DIRTY)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

    CMake built from "/home/wurbel/src/swipl-devel/build"

For online help and background, visit https://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).

?- test_file_names.
% PL-Unit: file_names 
ERROR: /home/wurbel/src/swipl-devel/src/Tests/files/test_file_names.pl:97:
	test 1: received error: directory_files/2: file `''' does not exist
ERROR: /home/wurbel/src/swipl-devel/src/Tests/files/test_file_names.pl:105:
	test 2: received error: directory_files/2: file `''' does not exist
ERROR: /home/wurbel/src/swipl-devel/src/Tests/files/test_file_names.pl:111:
	test 3: received error: directory_files/2: file `''' does not exist
ERROR: /home/wurbel/src/swipl-devel/src/Tests/files/test_file_names.pl:119:
	test 5: received error: directory_files/2: file `''' does not exist
ERROR: /home/wurbel/src/swipl-devel/src/Tests/files/test_file_names.pl:130:
	test 4: received error: directory_files/2: file `''' does not exist
ERROR: /home/wurbel/src/swipl-devel/src/Tests/files/test_file_names.pl:144:
	test 6: received error: directory_files/2: file `''' does not exist
 done
% 6 tests failed
% 0 tests passed
false.

By the way, why is the release number postfixed with DIRTY ? Prior to this release, I compiled a 8.5.14 version without such a postfixing. Can it be related to the test error ?

Thanks.

The first failing test is something really simple, so it looks something is really broken.

Because the git tree is dirty, i.e., something is modified, not correctly updated, etc. Try git status or git diff to see what is wrong. The above tests suggest the clib package is not updated as there was a fix there for this. Hopefully the Java issue is related. Problems with JPL have appeared in the past as well though :frowning:

Perhaps you need to do:

git submodule update --init

Thank you for the explanations and the suggestion. I will try the submodules update.