Remove last remnants of TESTING define

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-03 17:28:47 +01:00
parent ab621e189b
commit ea565153bc
2 changed files with 3 additions and 9 deletions

View File

@ -788,22 +788,20 @@ int main(int argc, char *argv[])
Terminate();
}
/* Determine where kernel logging information is to come from. */
#if defined(KLOGD_DELAY)
sleep(KLOGD_DELAY);
#endif
/* Determine where kernel logging information is to come from. */
logsrc = GetKernelLogSrc();
if (symbol_lookup) {
InitKsyms(symfile);
InitMsyms();
}
#ifndef TESTING
if (getpid() != ppid)
kill(ppid, SIGTERM);
#endif
/* The main loop. */
while (1) {
if (change_state)
ChangeLogging();

View File

@ -284,10 +284,8 @@ static int CheckVersion(char *version)
int major;
int minor;
int patch;
#ifndef TESTING
struct utsname utsname;
int kvnum;
#endif
/* Early return if there is no hope. */
if (strncmp(version, prefix, strlen(prefix)) == 0 /* ELF */ ||
@ -315,7 +313,6 @@ static int CheckVersion(char *version)
patch);
sprintf(vstring, "%d.%d.%d", major, minor, patch);
#ifndef TESTING
/*
* We should now have the version string in the vstring variable in
* the same format that it is stored in by the kernel. We now
@ -344,8 +341,7 @@ static int CheckVersion(char *version)
if (vnum != kvnum)
return -1;
/* Success. */
#endif
/* Success. */
return 1;
}