Re: [DTrace-devel] [PATCH 4/5] test/unittest/udp: enable IPv4 remote udp test
Eugene Loh <[email protected]>
| Newsgroups | dev.linux.lists.dtrace |
|---|---|
| Message-ID | <[email protected]> |
Reviewed-by: Eugene Loh <[email protected]> PS I do not understand the read->set change, but I'm good with R-b anyhow, just to get rid of that skip. On 8/22/25 14:16, Alan Maguire via DTrace-devel wrote: > It just tests send so we can send to remote address > and verify probe firing. > > Signed-off-by: Alan Maguire <[email protected]> > --- > test/unittest/udp/tst.ipv4remoteudp.sh | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git a/test/unittest/udp/tst.ipv4remoteudp.sh b/test/unittest/udp/tst.ipv4remoteudp.sh > index 89309cfc..62ed186a 100755 > --- a/test/unittest/udp/tst.ipv4remoteudp.sh > +++ b/test/unittest/udp/tst.ipv4remoteudp.sh > @@ -13,9 +13,7 @@ > # > # 1. A change to the ip stack breaking expected probe behavior, > # which is the reason we are testing. > -# 2. No physical network interface is plumbed and up. > -# 3. No other hosts on this subnet are reachable and listening on rpcbind. > -# 4. An unlikely race causes the unlocked global send/receive > +# 2. An unlikely race causes the unlocked global send/receive > # variables to be corrupted. > # > # This test sends a UDP message using perl and checks that at least the > @@ -25,8 +23,6 @@ > # 1 x udp:::send (UDP sent) > # > > -# @@skip: not sure what port 31337 is supposed to be > - > if (( $# != 1 )); then > echo "expected one argument: <dtrace-path>" >&2 > exit 2 > @@ -41,7 +37,10 @@ if [[ ! -x $getaddr ]]; then > echo "could not find or execute sub program: $getaddr" >&2 > exit 3 > fi > -read source dest <<<`$getaddr ipv4 2>/dev/null` > +set -- $($getaddr ipv4) > +source="$1" > +dest="$2" > + > if (( $? != 0 )) || [[ -z $dest ]]; then > exit 67 > fi