Page MenuHomeFreeBSD

Fix test timeout: common.speculation.t_dtrace_contrib.tst_NoSpecBuffer_d
ClosedPublic

Authored by lwhsu on Jul 20 2017, 5:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 4:58 PM
Unknown Object (File)
Wed, Oct 2, 10:13 AM
Unknown Object (File)
Sep 28 2024, 9:16 AM
Unknown Object (File)
Sep 21 2024, 12:37 PM
Unknown Object (File)
Sep 17 2024, 9:48 AM
Unknown Object (File)
Sep 8 2024, 2:41 PM
Unknown Object (File)
Sep 8 2024, 8:56 AM
Unknown Object (File)
Sep 8 2024, 6:57 AM
Subscribers

Details

Summary

This test timeout on a quiet system because there is nobody triggers
syscall::open:entry and syscall::: probe while test execution.

Add a simple script to generate some noise, it sleeps for 1 second at begining
because current dtest script doesn't support execute a program after invoking
dtrace script.

Test Plan

cd /usr/tests/cddl/usr.sbin/dtrace/common/speculation && kyua debug t_dtrace_contrib:tst_NoSpecBuffer_d

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10649
Build 11053: arc lint + arc unit

Event Timeline

Why is a binary file being checked in?

In D11671#241800, @ngie wrote:

Why is a binary file being checked in?

That's not a binary file, it's a script which needs to be run while test running, like other .exe files in test suite. arc(1) treats it as binary...

svn ps svn:mime-type text/plain tst.NoSpecBuffer.exe

cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/tst.NoSpecBuffer.exe
28

This is susceptible to the same race I mentioned in the other review. IMO it is better to just loop forever and let the test harness kill the .exe process once the test has passed.

lwhsu edited edge metadata.

Add a sleep(1) to avoid CPU busy loop.

This revision is now accepted and ready to land.Jul 25 2017, 10:25 AM
This revision was automatically updated to reflect the committed changes.