summaryrefslogtreecommitdiff
path: root/tests/tsub1sp.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-03-12 17:45:07 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-03-12 17:45:07 +0000
commitea6dca2a8a7e7601ce8c03fa308227c09fe70e9c (patch)
treebf00e7699d6d7852671d646b10366babe6bc503e /tests/tsub1sp.c
parentd6568c76d7e653f2335aee4aeeaa9f80e35d4c4f (diff)
downloadmpfr-ea6dca2a8a7e7601ce8c03fa308227c09fe70e9c.tar.gz
Remove use of abort (They can create core dump on some systems).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2839 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsub1sp.c')
-rw-r--r--tests/tsub1sp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tsub1sp.c b/tests/tsub1sp.c
index e876510da..3983a9f6a 100644
--- a/tests/tsub1sp.c
+++ b/tests/tsub1sp.c
@@ -50,7 +50,7 @@ int main(void)
printf("\nReal: "); mpfr_print_binary(x2);\
printf("\nGot : "); mpfr_print_binary(x);\
putchar('\n');\
- abort();\
+ exit(1);\
}
#define STD_ERROR2 \
@@ -62,7 +62,7 @@ int main(void)
printf("\nR="); mpfr_print_binary(x);\
printf("\nWrong inexact flag. Real: %d. Got: %d\n", \
inexact1, inexact2); \
- abort();\
+ exit(1);\
}
void check_random(mpfr_prec_t p)
@@ -118,7 +118,7 @@ void check_special(void)
{
printf("Error for x-x with p=%lu. Expected 0. Got:", p);
mpfr_print_binary(x);
- abort();
+ exit(1);
}
mpfr_set(z, y, r);
@@ -127,7 +127,7 @@ void check_special(void)
{
printf("Error for x-y with y=x and p=%lu. Expected 0. Got:", p);
mpfr_print_binary(x);
- abort();
+ exit(1);
}
/* diff = 0 */
mpfr_set_str_binary (y,