tests cleanup
. make common.o link with the tests instead of being #included as common.c . fix warnings about missing prototypes by declaring functions static . reduces some duplicated code Change-Id: Ic2a765d7f5886add5863190efec3fdd2d2ea2137
This commit is contained in:
+3
-2
@@ -12,13 +12,14 @@
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define MAX_ERROR 4
|
||||
int max_error = 4;
|
||||
#include "common.h"
|
||||
|
||||
#define ITERATIONS 60
|
||||
|
||||
#define Fstat(a,b) if (fstat(a,b) != 0) printf("Can't fstat %d\n", a)
|
||||
#define Time(t) if (time(t) == (time_t)-1) printf("Time error\n")
|
||||
|
||||
#include "common.c"
|
||||
|
||||
int subtest;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user