(Created page with "{{header|qa}} {{QA/Test_Case |description=This testcase checks whether kpartx will crash when called with invalid options. It is reported in fixed bug that when kpartx was pas...") |
No edit summary |
||
Line 9: | Line 9: | ||
2. Clone the multipath repository: | 2. Clone the multipath repository: | ||
3. cd into the testcase directory | 3. cd into the testcase directory | ||
cd storage-fedora/multipath/ | cd storage-fedora/multipath/multipathd_error_status | ||
4. run the testcase | 4. run the testcase | ||
./runtest.sh | ./runtest.sh |
Revision as of 06:31, 29 October 2018
Description
This testcase checks whether kpartx will crash when called with invalid options. It is reported in fixed bug that when kpartx was passes something other than a file or a block device or a badly formed pathname, it could read off the end of the device string, and crash. The test steps include:1)install device-mapper device-mapper-multipath 2)restart multipathd service 3)kpartx -l / 4)check dmesg if there is segmentation fault
How to test
1. Ensure the device-mapper-multipath package is installed
2. Clone the multipath repository: 3. cd into the testcase directory
cd storage-fedora/multipath/multipathd_error_status
4. run the testcase
./runtest.sh
Expected Results
- The testcase should pass without any error introduced.