diff: add a test case for failed -s option
(cherry picked from commit 13860e71eb501f498a2263f44ea9244f6830b61c)