summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/runtests.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/posix/runtests.c b/posix/runtests.c
index 2e823fb52f..1e91b11e68 100644
--- a/posix/runtests.c
+++ b/posix/runtests.c
@@ -4,13 +4,13 @@ Copyright 1995 by Tom Lord
 
                         All Rights Reserved
 
-Permission to use, copy, modify, and distribute this software and its 
-documentation for any purpose and without fee is hereby granted, 
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
 provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in 
+both that copyright notice and this permission notice appear in
 supporting documentation, and that the name of the copyright holder not be
 used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.  
+software without specific, written prior permission.
 
 Tom Lord DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
@@ -39,7 +39,7 @@ struct a_test
   const unsigned char * data;
 };
 
-static const struct a_test the_tests[] = 
+static const struct a_test the_tests[] =
 {
 #include "testcases.h"
   {-1, 0, 0}
@@ -84,7 +84,7 @@ run_a_test (int id, const struct a_test * t)
 	  return 1;
 	}
     }
-      
+
   err = regexec (&r, t->data, 10, regs, 0);
 
   if (err != t->expected)
@@ -132,7 +132,5 @@ main (int argc, char * argv[])
       printf ("#%d:", x);
       res |= run_a_test (x, &the_tests[x]);
     }
-  exit (res != 0);
+  return res != 0;
 }
-
-