summaryrefslogtreecommitdiffstats
path: root/lib/randutils.c
diff options
context:
space:
mode:
authorKarel Zak2017-01-04 11:44:37 +0100
committerKarel Zak2017-01-04 11:44:37 +0100
commite8f7acb0d34ed0eeb4262dcf6c54208979616b06 (patch)
treed827bec93c8fb217b784a69940936fa28094d3c2 /lib/randutils.c
parentMerge branch 'fixes' of https://github.com/rudimeier/util-linux (diff)
downloadkernel-qcow2-util-linux-e8f7acb0d34ed0eeb4262dcf6c54208979616b06.tar.gz
kernel-qcow2-util-linux-e8f7acb0d34ed0eeb4262dcf6c54208979616b06.tar.xz
kernel-qcow2-util-linux-e8f7acb0d34ed0eeb4262dcf6c54208979616b06.zip
lib: use unique ifdefs for tests
Let's use unique TEST_PROGRAM_<NAME> ifdefs to make build system more robust. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/randutils.c')
-rw-r--r--lib/randutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/randutils.c b/lib/randutils.c
index 8defe744c..daf046005 100644
--- a/lib/randutils.c
+++ b/lib/randutils.c
@@ -173,7 +173,7 @@ const char *random_tell_source(void)
return _("libc pseudo-random functions");
}
-#ifdef TEST_PROGRAM
+#ifdef TEST_PROGRAM_RANDUTILS
int main(int argc __attribute__ ((__unused__)),
char *argv[] __attribute__ ((__unused__)))
{
@@ -187,4 +187,4 @@ int main(int argc __attribute__ ((__unused__)),
return EXIT_SUCCESS;
}
-#endif /* TEST_PROGRAM */
+#endif /* TEST_PROGRAM_RANDUTILS */