summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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 c7eb983fb9855..d94ebc634822e 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"))