[DTrace-devel] [PATCH 08/14] Test: caller and stackdepth tests for ip provider

Nick Alcock nick.alcock at oracle.com
Fri Jun 13 14:51:18 UTC 2025


On 22 May 2025, eugene loh spake thusly:

> From: Eugene Loh <eugene.loh at oracle.com>
>
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>

Reviewed-by: Nick Alcock <nick.alcock at oracle.com>

with the microscopic caveat below.

> diff --git a/test/unittest/variables/bvar/perlping.pl b/test/unittest/variables/bvar/perlping.pl
> new file mode 100755
> index 000000000..97c9b09e9
> --- /dev/null
> +++ b/test/unittest/variables/bvar/perlping.pl
> @@ -0,0 +1,8 @@
> +#!/usr/bin/perl -w
> +# Oracle Linux DTrace.
> +# Copyright (c) 2016, 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.
> +use Net::Ping;
> +my $p = Net::Ping->new(${ARGV[0]}, 5, 56);
> +$p->ping(${ARGV[1]});

Is there some reason we can't just use $testdir/../../ip/perlping.pl and
avoid duplicating this?

-- 
NULL && (void)



More information about the DTrace-devel mailing list