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:
@@ -13,13 +13,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#define MODE_MASK (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID)
|
||||
#define MAX_ERROR 4
|
||||
int max_error = 4;
|
||||
#include "common.h"
|
||||
|
||||
#define ITERATIONS 2
|
||||
|
||||
#define System(cmd) if (system(cmd) != 0) printf("``%s'' failed\n", cmd)
|
||||
#define Chdir(dir) if (chdir(dir) != 0) printf("Can't goto %s\n", dir)
|
||||
|
||||
#include "common.c"
|
||||
|
||||
int superuser;
|
||||
char *MaxName; /* Name of maximum length */
|
||||
|
||||
Reference in New Issue
Block a user