Skip to content

Saturate elapsed build time #868

@jquorning

Description

@jquorning

I have been playing with alr test --full lately. Several times a Constraint_Error occurred when the computer sleeps during building. The problem occurs in air-testing-markdown.adb:75 and probably in alr-testing-console.adb otherwise. Both places the elapsed build times are converted to a fix point type (called CS) for formatting. The range of CS is ok, but the conversion should be saturated/clamped.

I can make a PR solving the problem, but I would like to know if I should duplicate then code in the two packages or if a common conversion should be introduced in air-testing, alr-util or elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions