aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_ctests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_ctests.py')
-rw-r--r--test/test_ctests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_ctests.py b/test/test_ctests.py
index feefc07..ae5cc8f 100644
--- a/test/test_ctests.py
+++ b/test/test_ctests.py
@@ -144,3 +144,14 @@ def test_notify_file_size(tmpdir, notify, output_checker):
logger.error(f"Failure in unmount: '{' '.join(cmdline)}'")
cleanup(mount_process, mnt_dir)
logger.debug("Unmount completed")
+
+def test_signals(output_checker):
+ """Test for proper signal handling (issue #1182)"""
+ logger = logging.getLogger(__name__)
+ logger.debug("Testing signal handling")
+ cmdline = [ pjoin(basename, 'test', 'test_signals') ]
+ logger.debug(f"Command line: {' '.join(cmdline)}")
+ subprocess.run(cmdline, stdout=output_checker.fd, \
+ stderr=output_checker.fd, timeout=10, check=True)
+ logger.debug("Signal handling test completed successfully")
+