All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] test: skip tst.symbols.c if no /proc/kallmodsyms
@ 2024-07-31 19:02 Kris Van Hees
  2024-07-31 19:36 ` Eugene Loh
  0 siblings, 1 reply; 4+ messages in thread
From: Kris Van Hees @ 2024-07-31 19:02 UTC (permalink / raw)
  To: dtrace, dtrace-devel

Signed-off-by: Kris Van Hees <kris.van.hees@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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-01  0:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31 19:02 [PATCH] test: skip tst.symbols.c if no /proc/kallmodsyms Kris Van Hees
2024-07-31 19:36 ` Eugene Loh
2024-07-31 19:55   ` Kris Van Hees
2024-08-01  0:50     ` Eugene Loh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.