[DTrace-devel] [PATCH] test: tst.subr.sh depends on headers in the DTrace source tree

Eugene Loh eugene.loh at oracle.com
Thu Feb 29 19:19:35 UTC 2024


Reviewed-by: Eugene Loh <eugene.loh at oracle.com>

On 2/29/24 13:24, Kris Van Hees via DTrace-devel wrote:
> Due to the dependency on a header file that is not distributed, this test
> needs to be skipped when running the test outside the source tree.
>
> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
>   test/unittest/funcs/tst.subr.x | 7 +++++++
>   1 file changed, 7 insertions(+)
>   create mode 100755 test/unittest/funcs/tst.subr.x
>
> diff --git a/test/unittest/funcs/tst.subr.x b/test/unittest/funcs/tst.subr.x
> new file mode 100755
> index 00000000..94e761d9
> --- /dev/null
> +++ b/test/unittest/funcs/tst.subr.x
> @@ -0,0 +1,7 @@
> +#!/bin/bash
> +
> +if [ ! -r include/dtrace/dif_defines.h ]; then
> +	exit 2
> +fi
> +
> +exit 0



More information about the DTrace-devel mailing list