Skip to content

Commit

Permalink
test: Add results file for err.resize2.d
Browse files Browse the repository at this point in the history
The err.resize2.d test PASSes.  Since this is an err.* test, that
means that the D script fails.  It fails, however, not because the
aggsize limit was excessive (which is the point of the test) but
simply because there is not yet support for aggregation keys.

Add a .r results file to ensure that if the D script fails,
it fails for the expected reason.

The real point of the test is to check the manual resizing option.
For now, however, we settle for reasonable behavior vis-a-vis
support for aggregation keys.

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 Aug 31, 2022
1 parent c9d18cd commit f7efadc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/stress/buffering/err.resize2.d
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/*
* Oracle Linux DTrace.
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2022, 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: 500 */
/* @@xfail: need support for aggregation keys */

/*
* ASSERTION:
Expand All @@ -14,7 +15,6 @@
* SECTION: Buffers and Buffering/Buffer Resizing Policy;
* Options and Tunables/bufresize;
* Options and Tunables/aggsize
*
*/

#pragma D option quietresize=no
Expand Down
3 changes: 3 additions & 0 deletions test/stress/buffering/err.resize2.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- @@stderr --
dtrace: script 'test/stress/buffering/err.resize2.d' matched 1 probe
dtrace: could not enable tracing: failed to create BPF map 'aggs': Too big

0 comments on commit f7efadc

Please sign in to comment.