From 943bc9bb02212649a83ec32152299d50d34226e6 Mon Sep 17 00:00:00 2001 From: rpj Date: Sun, 21 Feb 1999 18:07:25 +0000 Subject: 1999-02-23 Ross Johnson * Makefile: Now actually runs the tests. * tests.h: Define our own assert macro. The Mingw32 version pops up a dialog but we want to run non-interactively. * equal1.c: use assert a little more directly so that it prints the actual call statement. * exit1.c: Modify to return 0 on success, 1 on failure. --- tests/exit1.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/exit1.c') diff --git a/tests/exit1.c b/tests/exit1.c index 2f31383..758852a 100644 --- a/tests/exit1.c +++ b/tests/exit1.c @@ -10,5 +10,8 @@ int main(int argc, char * argv[]) { /* A simple test firstly. */ - pthread_exit((void *) 2); + pthread_exit((void *) 0); + + /* Not reached */ + return 1; } -- cgit v1.2.3