summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-02-20 20:28:29 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-02-20 20:28:29 +0300
commit955050aea3148595fde027319fd427369856ebc9 (patch)
treea5d736ae16fa11f95f27f3137427ce67ff6a01a8
parent09fb847cc731d133b2016ff6982ab95aa43794ca (diff)
downloadunit-955050aea3148595fde027319fd427369856ebc9.tar.gz
unit-955050aea3148595fde027319fd427369856ebc9.tar.bz2
Tests: skip sendmsg()/recvmsg() alerts for all tests.
Currently, these alerts may appear in the log when any application exits.
-rw-r--r--test/test_configuration.py1
-rw-r--r--test/test_python_application.py8
-rw-r--r--test/test_ruby_application.py1
-rw-r--r--test/unit.py3
4 files changed, 2 insertions, 11 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index d6c9cd5c..32c5a0b7 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -132,7 +132,6 @@ class TestUnitConfiguration(unit.TestUnitControl):
self.skip_sanitizer = True
self.skip_alerts.extend([
r'failed to apply previous configuration',
- r'sendmsg.+failed',
r'process \d+ exited on signal'
])
diff --git a/test/test_python_application.py b/test/test_python_application.py
index b28675f9..d37af0c4 100644
--- a/test/test_python_application.py
+++ b/test/test_python_application.py
@@ -87,7 +87,6 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
'204 header transfer encoding')
def test_python_application_ctx_iter_atexit(self):
- self.skip_alerts.append(r'sendmsg.+failed')
self.load('ctx_iter_atexit')
resp = self.post(headers={
@@ -131,10 +130,6 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
self.assertEqual(resp['body'], '0123456789', 'keep-alive 2')
def test_python_keepalive_reconfigure(self):
- self.skip_alerts.extend([
- r'sendmsg.+failed',
- r'recvmsg.+failed'
- ])
self.load('mirror')
body = '0123456789'
@@ -183,7 +178,6 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
}, 'applications/mirror/processes'), 'reconfigure 3')
def test_python_keepalive_reconfigure_2(self):
- self.skip_alerts.append(r'sendmsg.+failed')
self.load('mirror')
body = '0123456789'
@@ -217,7 +211,6 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
self.assertEqual(resp, {}, 'reconfigure 2 keep-alive 3')
def test_python_keepalive_reconfigure_3(self):
- self.skip_alerts.append(r'sendmsg.+failed')
self.load('empty')
(resp, sock) = self.http(b"""GET / HTTP/1.1
@@ -236,7 +229,6 @@ Connection: close
self.assertEqual(resp['status'], 200, 'reconfigure 3')
def test_python_atexit(self):
- self.skip_alerts.append(r'sendmsg.+failed')
self.load('atexit')
self.get()
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py
index b88e043d..9eed3e4a 100644
--- a/test/test_ruby_application.py
+++ b/test/test_ruby_application.py
@@ -208,7 +208,6 @@ class TestUnitRubyApplication(unit.TestUnitApplicationRuby):
'errors write int')
def test_ruby_application_at_exit(self):
- self.skip_alerts.append(r'sendmsg.+failed')
self.load('at_exit')
self.get()
diff --git a/test/unit.py b/test/unit.py
index 2af3e8f6..80e26e0d 100644
--- a/test/unit.py
+++ b/test/unit.py
@@ -179,7 +179,8 @@ class TestUnit(unittest.TestCase):
self._started = True
- self.skip_alerts = [r'read signalfd\(4\) failed']
+ self.skip_alerts = [r'read signalfd\(4\) failed', r'sendmsg.+failed',
+ r'recvmsg.+failed']
self.skip_sanitizer = False
def _stop(self):