Skip to content

Commit

Permalink
test: add test for lib/pattern segfault issue
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vincentkfu committed Jan 31, 2023
1 parent c6cade1 commit 23fb164
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/jobs/t0028-c6cade16.fio
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[test]
size=16k
readwrite=write
buffer_pattern="abcd"-120xdeadface
ioengine=null
9 changes: 9 additions & 0 deletions t/run-fio-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,15 @@ def cpucount4(cls):
'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,
Expand Down

0 comments on commit 23fb164

Please sign in to comment.