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

Kris Van Hees kris.van.hees at oracle.com
Thu Feb 29 18:24:32 UTC 2024


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
-- 
2.42.0




More information about the DTrace-devel mailing list