summaryrefslogtreecommitdiffstats
path: root/lib/pager.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/pager.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/pager.c')
-rw-r--r--lib/pager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pager.c b/lib/pager.c
index 114b3f7a7..24284d605 100644
--- a/lib/pager.c
+++ b/lib/pager.c
@@ -260,7 +260,7 @@ void pager_close(void)
memset(&pager_process, 0, sizeof(pager_process));
}
-#ifdef TEST_PROGRAM
+#ifdef TEST_PROGRAM_PAGER
#define MAX 255
@@ -274,4 +274,4 @@ int main(int argc __attribute__ ((__unused__)),
printf("%d\n", i);
return EXIT_SUCCESS;
}
-#endif /* TEST_PROGRAM */
+#endif /* TEST_PROGRAM_PAGER */