Fix tests exit code
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
403e6a141b
commit
80d8fdbf48
3 changed files with 4 additions and 3 deletions
|
@ -90,5 +90,5 @@ int main() {
|
|||
enable_trace("numerics");
|
||||
tst1();
|
||||
tst2();
|
||||
return 0;
|
||||
return has_violations() ? 1 : 0;
|
||||
}
|
||||
|
|
|
@ -74,5 +74,5 @@ static void tst1() {
|
|||
int main() {
|
||||
continue_on_violation(true);
|
||||
tst1();
|
||||
return 0;
|
||||
return has_violations() ? 1 : 0;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,8 @@ static void tst2() {
|
|||
}
|
||||
|
||||
int main() {
|
||||
lean::continue_on_violation(true);
|
||||
tst1();
|
||||
tst2();
|
||||
return 0;
|
||||
return lean::has_violations() ? 1 : 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue