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:
@@ -17,14 +17,14 @@
|
||||
#define STREQ(a, b) (strcmp((a), (b)) == 0)
|
||||
|
||||
char *it = "<UNSET>"; /* Routine name for message routines. */
|
||||
int errct; /* count errors */
|
||||
int waserror = 0; /* For exit status. */
|
||||
|
||||
char uctest[] = "\004\203"; /* For testing signedness of chars. */
|
||||
int charsigned; /* Result. */
|
||||
|
||||
#define MAX_ERROR 2
|
||||
#include "common.c"
|
||||
int max_error = 2;
|
||||
#include "common.h"
|
||||
|
||||
|
||||
void check(int thing, int number);
|
||||
void equal(char *a, char *b, int number);
|
||||
|
||||
Reference in New Issue
Block a user