aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2020-10-06 04:18:42 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2020-10-06 04:18:42 +0000
commit7862a433e947a78b44bce80bb7e00eeb44d752cd (patch)
tree8fef38a2db179b3972d7265f9e3a378b56e4a020 /tests
parentf165a1df9a8fb7bd57780b433cfb4c2cb3d1d9f4 (diff)
downloadsrc-7862a433e947a78b44bce80bb7e00eeb44d752cd.tar.gz
src-7862a433e947a78b44bce80bb7e00eeb44d752cd.zip
Clear the dmesg buffer to prevent rotating causes issues
This is a workaround for the current continuously failing test case sys.kern.sonewconn_overflow.sonewconn_overflow_01 The side effect is the dmesg buffer got cleared and may effect other tests depends on dmesg output running in parallel. The better solution would be tailing the log file like /var/log/debug.log Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=366469
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/kern/sonewconn_overflow.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sys/kern/sonewconn_overflow.py b/tests/sys/kern/sonewconn_overflow.py
index c7eb983fb985..d94ebc634822 100644
--- a/tests/sys/kern/sonewconn_overflow.py
+++ b/tests/sys/kern/sonewconn_overflow.py
@@ -85,6 +85,8 @@ class UnixTest(GenericTest):
class LogChecker():
def __init__(self):
+ # Clear the dmesg buffer to prevent rotating causes issues
+ os.system('/sbin/dmesg -c > /dev/null')
# Figure out how big the dmesg buffer is.
self.dmesgOff = len(check_output("/sbin/dmesg"))