[DTrace-devel] [PATCH] test: skip tst.symbols.c if no /proc/kallmodsyms

Kris Van Hees kris.van.hees at oracle.com
Wed Jul 31 19:02:13 UTC 2024


Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 test/unittest/consumer/tst.symbols.x | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100755 test/unittest/consumer/tst.symbols.x

diff --git a/test/unittest/consumer/tst.symbols.x b/test/unittest/consumer/tst.symbols.x
new file mode 100755
index 00000000..e83d97f6
--- /dev/null
+++ b/test/unittest/consumer/tst.symbols.x
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# Oracle Linux DTrace.
+# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
+# Licensed under the Universal Permissive License v 1.0 as shown at
+# http://oss.oracle.com/licenses/upl.
+
+# If /proc/kallmodsyms does not exist, there is nothing to test
+
+[[ -r /proc/kallmodsyms ]] || exit 2
+
+exit 0
-- 
2.45.2




More information about the DTrace-devel mailing list