stanford-centaur / smt-switch

A generic C++ API for SMT solving. It provides abstract classes which can be implemented by different SMT solvers.
Other
103 stars 40 forks source link

Gtest upgrade #318

Closed yoni206 closed 1 year ago

yoni206 commented 1 year ago
  1. The main contribution of this PR is to upgrade the version of gtest that we are using. The motivation: I was unable to compile smt-switch on ubuntu, because of a gtest error.

  2. The main consequence of the new gtest is that by default, empty test suites are not allowed and cause failures. The solution for this is to allow empty test suites specifically for each test separately. (We sometimes have empty test suites (e.g., tests for integers while linking only to bitwuzla).)

  3. This way I also found some test suites that were unintentionally empty, and so tests didn't run. This is now fixed.

  4. One of these tests, which seemingly didn't run, is now failing. The failed line is now commented out: https://github.com/stanford-centaur/smt-switch/compare/master...yoni206:gtest_upgrade?expand=1#diff-421e4920f63052c195b027cfcfd2c01599e9663b5aca6e6e38dceed764d69332R87

If we merge this, I can create an issue to solve it (I don't know currently how).

  1. I got another compiling error for not having <limits> included in cvc5_solver. This is fixed.

  2. There was an empty test suite (no tests were defined in it) which i deleted: UnitQuantifierTests