Skip to content

Unwanted output in tests (and probably outside of it, too) #392

Open
@PhilippWendler

Description

@PhilippWendler

When running tests, such as in this case, some of the tests seem to print warnings like the following:

  • Unexpected logic for quantifier elimination ALL
  • WARNING: optimization with quantified constraints is not supported

I am not sure how to interpret this, does this indicate a bug?

Anyway, given that these strings do not appear in the source of JavaSMT, I assume that this outputs will also appear in certain situations during regular usage of JavaSMT (outside of tests). However, JavaSMT and the solvers are libraries, they should never write to stdout or stderr unless explicitly told so by the calling application. Any output is likely to mess up the desired output of the application. Libraries should use logging, or, if the message indicate bugs, communicate this via exceptions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions