@SkipUnless(svntest.main.is_fs_type_fsfs)
@SkipDumpLoadCrossCheck()
def verify_with_invalid_revprops(sbox):
    'svnadmin verify detects invalid revprops file'
    sbox.build(create_wc=False, empty=True)
    repo_dir = sbox.repo_dir
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', sbox.repo_dir)
    if errput:
        raise SVNUnexpectedStderr(errput)
    if svntest.verify.verify_outputs("Output of 'svnadmin verify' is unexpected.", None, output, None, '.*Verified revision 0*'):
        raise svntest.Failure
    rp_file = open(os.path.join(repo_dir, 'db', 'revprops', '0', '0'), 'w')
    rp_file.write('')
    rp_file.close()
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', sbox.repo_dir)
    if svntest.verify.verify_outputs("Output of 'svnadmin verify' is unexpected.", None, errput, None, '.*svnadmin: E200002:.*'):
        raise svntest.Failure
svnadmin verify detects invalid revprops file
@SkipUnless(svntest.main.is_fs_type_fsfs)
@SkipDumpLoadCrossCheck()
def verify_with_invalid_revprops(sbox):
    
    sbox.build(create_wc=False, empty=True)
    repo_dir = sbox.repo_dir
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', sbox.repo_dir)
    if errput:
        raise SVNUnexpectedStderr(errput)
    if svntest.verify.verify_outputs("Output of 'svnadmin verify' is unexpected.", None, output, None, '.*Verified revision 0*'):
        raise svntest.Failure
    rp_file = open(os.path.join(repo_dir, 'db', 'revprops', '0', '0'), 'w')
    rp_file.write()
    rp_file.close()
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', sbox.repo_dir)
    if svntest.verify.verify_outputs("Output of 'svnadmin verify' is unexpected.", None, errput, None, '.*svnadmin: E200002:.*'):
        raise svntest.Failure