Opened 5 years ago

Closed 5 years ago

#807 closed defect (fixed)

libc failing unit tests

Reported by: Jiri Svoboda Owned by: Jakub Jermář
Priority: major Milestone:
Component: helenos/lib/c Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:

Description

As of revision 5667dcafabd2d4011aab17d1ae71978ce3d3cd45, libc fails unit tests capa_format_rounding and getopt_optional_param

Change History (2)

comment:1 by Jiri Svoboda, 5 years ago

Component: helenos/unspecifiedhelenos/lib/c
Owner: set to Jakub Jermář

comment:2 by Jiri Svoboda, 5 years ago

Resolution: fixed
Status: newclosed

Fixed

For capa_format_rounding the capa_simplify function did not correctly handle the edge case of rounding up increasing the number of integer digits (e.g. 999.99 → 1000.0).

For getopt_optional_param there was a bug in the test, optional param was supplied as "-p param" instead of "-pparam".

Note: See TracTickets for help on using tickets.