[bug #68087] failing unit test for dir.m under Linux (Octave 11.1.0)
Hartmut <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
URL:
<https://savannah.gnu.org/bugs/?68087>
Summary: failing unit test for dir.m under Linux (Octave
11.1.0)
Group: GNU Octave
Submitter: hardy
Submitted: Di 24 Feb 2026 22:07:07 UTC
Category: Test Suite
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Unlocked
Release: 11.1.0
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Di 24 Feb 2026 22:07:07 UTC By: Hartmut <hardy>
I have downloaded, compiled and installed the latest Octave-11.1.0 release
tar-ball onto my laptop with Ubuntu 24.04.
When running the test suite, I get one failing unit test, that can sometimes
be reproduced also on its own:
octave:11> test dir.m
***** test
orig_dir = pwd ();
tmp_dir = tempname ();
unwind_protect
assert (mkdir (tmp_dir));
chdir (tmp_dir);
fclose (fopen ("f1", "w"));
list = dir ();
assert (isstruct (list) && ! isempty (list));
assert (fieldnames (list),
{"name"; "folder"; "date"; "bytes"; "isdir"; "datenum";
"statinfo"});
if (isunix ())
idx = find (strcmp ({list.name}, "."), 1);
assert ({list(idx:idx+1).name}, {".", ".."});
assert ([list(idx:idx+1).isdir], [true true]);
endif
## test that specifying a filename works the same as using a directory.
found = find (! [list.isdir], 1);
if (! isempty (found))
list2 = dir (fullfile (list(found).folder, list(found).name));
assert (list(found), list2);
endif
unwind_protect_cleanup
chdir (orig_dir);
confirm_recursive_rmdir (false, "local");
if (exist (tmp_dir))
sts = rmdir (tmp_dir, "s");
endif
end_unwind_protect
!!!!! test failed
ASSERT errors for: assert (cond {i},expected {i},tol)
Location | Observed | Expected | Reason
() 1771970719.5172 1771970719.5212 Abs err 0.0039999 exceeds tol 0
by 0.004
octave:12>
When doing "test dir.m" ten times on my laptop, I can most of the time see
this failing unit test once.
Let me know if you need more information on my system, or any other details.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68087>
_______________________________________________
Nachricht gesendet über Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaZ4hEAAKCRCqLAuaBUf3 TiKgAQCnxrgy1j3w24qLtixOgjjCIVdcyVyKfHUvtp2zZzg63AD/RrIF194FPaU0 +3HtNASnhJDMX6kTi0OesRjYnDJDRw4= =wRMb -----END PGP SIGNATURE-----