Fix tests exit code

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-07-20 18:04:05 -07:00
parent 403e6a141b
commit 80d8fdbf48
3 changed files with 4 additions and 3 deletions

View file

@ -90,5 +90,5 @@ int main() {
enable_trace("numerics");
tst1();
tst2();
return 0;
return has_violations() ? 1 : 0;
}

View file

@ -74,5 +74,5 @@ static void tst1() {
int main() {
continue_on_violation(true);
tst1();
return 0;
return has_violations() ? 1 : 0;
}

View file

@ -67,7 +67,8 @@ static void tst2() {
}
int main() {
lean::continue_on_violation(true);
tst1();
tst2();
return 0;
return lean::has_violations() ? 1 : 0;
}