Skip to content

Commit

Permalink
test: Bump timeouts up for tests with large BPF programs
Browse files Browse the repository at this point in the history
With some kernels, the BPF verifier is taking a long time to load
large BPF programs.  This causes some tests to time out on some
kernels.  Bump a few timeouts up accordingly, so that these DTrace
tests can pass independently of tuning efforts in the kernel.

Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
euloh authored and kvanhees committed Mar 5, 2024
1 parent a183d2a commit 8eac44c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/unittest/arithmetic/tst.cast-exp-assoc.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Oracle Linux DTrace.
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 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.
*/
Expand All @@ -12,6 +12,7 @@
* SECTION: Types, Operators, and Expressions/Arithmetic Operators
*/
/* @@runtest-opts: -qC */
/* @@timeout: 120 */

signed char c[int], c0[int];
short s[int], s0[int];
Expand Down
3 changes: 2 additions & 1 deletion test/unittest/options/tst.bpflogsize-cmdline.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
#
# Oracle Linux DTrace.
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2021, 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.
#
# @@timeout: 100

dtrace=$1

Expand Down
3 changes: 2 additions & 1 deletion test/unittest/options/tst.bpflogsize-pragma.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
#
# Oracle Linux DTrace.
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2021, 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.
#
# @@timeout: 100

dtrace=$1

Expand Down

0 comments on commit 8eac44c

Please sign in to comment.