t4017 (diff-retval): replace manual exit code check with test_expect_code