[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Test case for issue 3713

From: Noorul Islam K M <noorul_at_collab.net>
Date: Thu, 11 Nov 2010 12:39:15 +0530

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__':
Received on 2010-11-11 08:11:47 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.