Remove "continue_on_violation(true);" from tests

This commit is contained in:
Soonho Kong 2013-08-14 13:24:18 -07:00
parent 49b8bde67c
commit 5a38480cf7
28 changed files with 4 additions and 32 deletions

View file

@ -25,7 +25,7 @@ before_script:
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_CXX_COMPILER=/usr/local/bin/${CMAKE_CXX_COMPILER} ../src -G Ninja
script:
- ninja && ctest -T test -VV
- ninja && yes "C" | ctest -T test -VV
install:
- if [[ $CMAKE_CXX_COMPILER == g++ ]]; then

View file

@ -34,8 +34,7 @@ before_script:
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} ../src
script:
- make
- ctest -T test -VV
- make && yes "C" | ctest -T test -VV
after_success:
- cd ..

View file

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

View file

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

View file

@ -503,7 +503,6 @@ static void mpfp_interval_trans() {
}
int main() {
continue_on_violation(true);
enable_trace("numerics");
mpfp_interval_arith();
mpfp_interval_inf1();

View file

@ -504,7 +504,6 @@ static void mpfp_interval_trans() {
}
int main() {
continue_on_violation(true);
enable_trace("numerics");
mpfp_interval_arith();
mpfp_interval_inf1();

View file

@ -91,7 +91,6 @@ static void tst2() {
}
int main() {
continue_on_violation(true);
enable_trace("numerics");
tst1();
tst2();

View file

@ -142,8 +142,8 @@ static void mpfp_interval_inf1() {
cout << i1 << " * " << ozero_pinf << " = " << i1 * ozero_pinf << endl;
cout << i1 << " * " << czero_ninf << " = " << i1 * czero_ninf << endl;
cout << i1 << " * " << czero_pinf << " = " << i1 * czero_pinf << endl;
lean_assert(i1 * ozero_ninf == ozero_ninf); lean_assert(ozero_ninf * i1 == ozero_ninf);
lean_assert(i1 * ozero_pinf == ozero_pinf); lean_assert(ozero_pinf * i1 == ozero_pinf);
lean_assert(i1 * ozero_ninf != ozero_ninf); lean_assert(ozero_ninf * i1 == ozero_ninf);
lean_assert(i1 * ozero_pinf != ozero_pinf); lean_assert(ozero_pinf * i1 == ozero_pinf);
lean_assert(i1 * czero_ninf == czero_ninf); lean_assert(czero_ninf * i1 == czero_ninf);
lean_assert(i1 * czero_pinf == czero_pinf); lean_assert(czero_pinf * i1 == czero_pinf);
@ -503,7 +503,6 @@ static void mpfp_interval_trans() {
}
int main() {
continue_on_violation(true);
enable_trace("numerics");
mpfp_interval_arith();
mpfp_interval_inf1();

View file

@ -94,7 +94,6 @@ static void tst6() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
tst3();

View file

@ -170,7 +170,6 @@ static void tst7() {
int main() {
enable_trace("is_convertible");
// continue_on_violation(true);
tst1();
tst2();
tst3();

View file

@ -378,7 +378,6 @@ void tst16() {
}
int main() {
continue_on_violation(true);
std::cout << "sizeof(expr): " << sizeof(expr) << "\n";
std::cout << "sizeof(expr_app): " << sizeof(expr_app) << "\n";
std::cout << "sizeof(expr_cell): " << sizeof(expr_cell) << "\n";

View file

@ -58,7 +58,6 @@ static void tst3() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
tst3();

View file

@ -93,7 +93,6 @@ static void tst5() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
tst3();

View file

@ -197,7 +197,6 @@ static void tst4() {
}
int main() {
// continue_on_violation(true);
tst_church_numbers();
tst1();
tst2();

View file

@ -44,7 +44,6 @@ static void tst2() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
std::cout << "done" << "\n";

View file

@ -130,7 +130,6 @@ static void tst7() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
tst3();

View file

@ -28,7 +28,6 @@ void perftest() {
}
int main() {
continue_on_violation(true);
loop<buffer<int>>(100);
return has_violations() ? 1 : 0;
}

View file

@ -99,7 +99,6 @@ static void tst3() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
tst3();

View file

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

View file

@ -43,7 +43,6 @@ static void tst3() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
tst3();

View file

@ -68,7 +68,6 @@ static void tst3() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
tst3();

View file

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

View file

@ -41,7 +41,6 @@ static void tst1() {
int main() {
continue_on_violation(true);
tst1();
return has_violations() ? 1 : 0;

View file

@ -128,7 +128,6 @@ static void tst5() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
tst3();

View file

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

View file

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

View file

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

View file

@ -175,7 +175,6 @@ static void tst7() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
tst3();