Skip to content

Commit

Permalink
test: Clean up tst.coverage.d
Browse files Browse the repository at this point in the history
The .t file was not executable and therefore not being used.
Further, the .d test specifies another @@trigger explicitly.
So remove the unused .t file.

Clean the .d file up a little, mostly to use aggregations and
thereby reduce the volume of output.

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 Feb 2, 2024
1 parent 3a09091 commit 89f8d66
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
23 changes: 10 additions & 13 deletions test/unittest/pid/tst.coverage.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Oracle Linux DTrace.
* Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 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 @@ -10,25 +10,22 @@
/* @@trigger-timing: before */

/*
* ASSERTION: test that we can trace every instruction safely
* ASSERTION: test that we can trace some instructions safely
*
* SECTION: pid provider
*
*/

BEGIN
pid$1:a.out::
{
/*
* Let's just do this for 2 seconds.
*/
timeout = timestamp + 2000000000;
n++;
}

pid$1:a.out::
{}
profile:::tick-2sec
{
exit(n > 0 ? 0 : 1);
}

profile:::tick-4
/timestamp > timeout/
ERROR
{
exit(0);
exit(1);
}
8 changes: 0 additions & 8 deletions test/unittest/pid/tst.coverage.t

This file was deleted.

0 comments on commit 89f8d66

Please sign in to comment.