]> granicus.if.org Git - procps-ng/commit
build-sys: fix some important 'tests.h' related issues
authorJim Warner <james.warner@comcast.net>
Sat, 15 Aug 2020 16:11:11 +0000 (11:11 -0500)
committerCraig Small <csmall@dropbear.xyz>
Mon, 17 Aug 2020 11:49:08 +0000 (21:49 +1000)
commit2c891196683816585d9a4b9ae148f671299bbc1e
tree73eaa9f2861a2f0ae1ffc1695ece157436eadc29
parentebb57668a18fb2653177019d6761fffa80a497f0
build-sys: fix some important 'tests.h' related issues

Exploiting a header file shouldn't also force users to
code their own '#include <stdio.h>'. More importantly,
unless this header is mentioned in dist_noinst_HEADERS
we'd fail 'make distcheck' with the error shown below.

[ the same error will apply to all 'noinst_PROGRAMS' ]
[ that happen to use this header. but please, do not ]
[ ask me to explain exactly why or how my fix works! ]

Reference(s):
../../proc/test_pids.c:24:10: fatal error: tests.h: No such file or directory
   24 | #include "tests.h"
      |          ^~~~~~~~~

Signed-off-by: Jim Warner <james.warner@comcast.net>
include/Makefile.am
include/tests.h