test: add test for lib/pattern segfault issue
authorVincent Fu <vincent.fu@samsung.com>
Tue, 31 Jan 2023 15:43:13 +0000 (10:43 -0500)
committerVincent Fu <vincent.fu@samsung.com>
Tue, 31 Jan 2023 15:43:13 +0000 (10:43 -0500)
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 <vincent.fu@samsung.com>
t/jobs/t0028-c6cade16.fio [new file with mode: 0644]
t/run-fio-tests.py

diff --git a/t/jobs/t0028-c6cade16.fio b/t/jobs/t0028-c6cade16.fio
new file mode 100644 (file)
index 0000000..a0096d8
--- /dev/null
@@ -0,0 +1,5 @@
+[test]
+size=16k
+readwrite=write
+buffer_pattern="abcd"-120xdeadface
+ioengine=null
index 70ff437114c87ce4838f998f493b3c94f1e9bf17..c3091b68542dd952673d16e7aaac3457052b306f 100755 (executable)
@@ -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,