Skip to content

Commit

Permalink
tests: fix usdt/tst.dlclose1.sh
Browse files Browse the repository at this point in the history
This test fails purely because of a bufsize expansion message, since in
v2 the bufsize must be at least one page.

Boost the bufsize in the test to the largest likely page size (64KiB,
seen on AArch64) to quash the message.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
nickalcock authored and kvanhees committed Sep 29, 2021
1 parent 85ecfd9 commit 8359ab8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/unittest/usdt/tst.dlclose1.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/bin/bash
#
# Oracle Linux DTrace.
# Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2007, 2021, 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.
#
# This test verifies that USDT providers are removed when its associated
# load object is closed via dlclose(3dl).
#
# @@xfail: dtv2

PATH=/usr/bin:/usr/sbin:$PATH

Expand Down Expand Up @@ -115,7 +113,7 @@ if [ $? -ne 0 ]; then
fi

script() {
$dtrace -Zw -x bufsize=1k -c ./main -qs /dev/stdin <<EOF
$dtrace -Zw -x bufsize=64k -c ./main -qs /dev/stdin <<EOF
syscall::pause:entry,
syscall::rt_sig*:entry
/pid == \$target/
Expand Down

0 comments on commit 8359ab8

Please sign in to comment.