Log [[[
New test case for issue 3713 svn cat for non-existing file returns incorrect exit-status. * subversion/tests/cmdline/cat_tests.py (cat_non_existing_path): New test (test_list): New XFail test Patch by: Noorul Islam K M <noorul{_AT_}collab.net> ]]] Thanks and Regards Noorul
Index: subversion/tests/cmdline/cat_tests.py =================================================================== --- subversion/tests/cmdline/cat_tests.py (revision 1033415) +++ subversion/tests/cmdline/cat_tests.py (working copy) @@ -210,7 +210,19 @@ for url in special_urls: svntest.actions.run_and_verify_svn2(None, None, expected_err, 0, 'cat', url) +def cat_non_existing_path(sbox): + """cat non exising path""" + sbox.build(create_wc = False) + wc_dir = sbox.wc_dir + non_existing_path = os.path.join(wc_dir, 'non-existing') + + expected_err = "svn: warning: '.*" + non_existing_path + "'" + \ + " is not under version control\n" + # cat operation on non-existing path should return 1 + svntest.actions.run_and_verify_svn2(None, None, expected_err, 1, + 'cat', non_existing_path) + ######################################################################## # Run the tests @@ -225,6 +237,7 @@ cat_unversioned_file, cat_keywords, cat_url_special_characters, + XFail(cat_non_existing_path), ] if __name__ == '__main__':