s4-torture: more printf removal from samlogon torture test.
[Samba/vl.git] / tests / summary.c
blobbd0c1624306e93687bc84d6e336f6a9062a80f83
1 #include <stdio.h>
3 void exit(int);
5 main()
7 #if !defined(HAVE_FCNTL_LOCK)
8 printf("ERROR: No locking available. Running Samba would be unsafe\n");
9 exit(1);
10 #endif
12 #if !(defined(HAVE_IFACE_GETIFADDRS) || defined(HAVE_IFACE_IFCONF) || defined(HAVE_IFACE_IFREQ) || defined(HAVE_IFACE_AIX))
13 printf("WARNING: No automated network interface determination\n");
14 #endif
16 #if !(defined(USE_SETEUID) || defined(USE_SETREUID) || defined(USE_SETRESUID) || defined(USE_SETUIDX) || defined(USE_LINUX_THREAD_CREDENTIALS))
17 printf("ERROR: no seteuid method available\n");
18 exit(1);
19 #endif
21 #if !(defined(STAT_STATVFS) || defined(STAT_STATFS3_OSF1) || defined(STAT_STATFS2_BSIZE) || defined(STAT_STATFS4) || defined(STAT_STATFS2_FSIZE) || defined(STAT_STATFS2_FS_DATA))
22 printf("ERROR: No disk free routine!\n");
23 exit(1);
24 #endif
26 #if !((defined(HAVE_RANDOM) || defined(HAVE_RAND)) && (defined(HAVE_SRANDOM) || defined(HAVE_SRAND)))
27 printf("ERROR: No random or srandom routine!\n");
28 exit(1);
29 #endif
31 exit(0);