about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/test-fenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/test-fenv.c b/math/test-fenv.c
index 62a148b3dc..9161c3342e 100644
--- a/math/test-fenv.c
+++ b/math/test-fenv.c
@@ -227,10 +227,10 @@ feenv_nomask_test (const char *flag_name, int fe_exc)
 
   printf ("Test: after fesetenv (FE_NOMASK_ENV) processes will abort\n");
   printf ("      when feraiseexcept (%s) is called.\n", flag_name);
-  fesetenv (FE_NOMASK_ENV);
   pid = fork  ();
   if (pid == 0)
     {
+      fesetenv (FE_NOMASK_ENV);
       feraiseexcept (fe_exc);
       exit (2);
     }
@@ -270,10 +270,10 @@ feenv_mask_test (const char *flag_name, int fe_exc)
 
   printf ("Test: after fesetenv (FE_DFL_ENV) processes will not abort\n");
   printf ("      when feraiseexcept (%s) is called.\n", flag_name);
-  fesetenv (FE_DFL_ENV);
   pid = fork ();
   if (pid == 0)
     {
+      fesetenv (FE_DFL_ENV);
       feraiseexcept (fe_exc);
       exit (2);
     }