From 23fb164250c29d184940ddcb2c26c02ea51aea4b Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Tue, 31 Jan 2023 10:43:13 -0500 Subject: [PATCH] test: add test for lib/pattern segfault issue Add t/jobs/t0028-c6cade16.fio to test the ability for the routines in lib/pattern.c to parse multi-part buffer patterns. Signed-off-by: Vincent Fu --- t/jobs/t0028-c6cade16.fio | 5 +++++ t/run-fio-tests.py | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 t/jobs/t0028-c6cade16.fio diff --git a/t/jobs/t0028-c6cade16.fio b/t/jobs/t0028-c6cade16.fio new file mode 100644 index 00000000..a0096d80 --- /dev/null +++ b/t/jobs/t0028-c6cade16.fio @@ -0,0 +1,5 @@ +[test] +size=16k +readwrite=write +buffer_pattern="abcd"-120xdeadface +ioengine=null diff --git a/t/run-fio-tests.py b/t/run-fio-tests.py index 70ff4371..c3091b68 100755 --- a/t/run-fio-tests.py +++ b/t/run-fio-tests.py @@ -1246,6 +1246,15 @@ TEST_LIST = [ 'pre_success': None, 'requirements': [], }, + { + 'test_id': 28, + 'test_class': FioJobTest, + 'job': 't0028-c6cade16.fio', + 'success': SUCCESS_DEFAULT, + 'pre_job': None, + 'pre_success': None, + 'requirements': [], + }, { 'test_id': 1000, 'test_class': FioExeTest, -- 2.25.1