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

Eugene Loh eugene.loh at oracle.com
Wed Jul 31 19:36:49 UTC 2024


Should we be adding a version of the test that's appropriate for 
/proc/kallsyms?

On 7/31/24 15:02, Kris Van Hees wrote:
> 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



More information about the DTrace-devel mailing list