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

improper XFail on svnadmin_tests.py:inconsistent_headers()

From: <kfogel_at_collab.net>
Date: 2005-05-31 17:12:18 CEST

In subversion/tests/clients/cmdline/svnadmin_test.py, the test
inconsistent_headers() is run as XFail. But from looking at the test,
this is a misuse of XFail.

The test just makes sure that loading a dumpfile fails when that
dumpfile has a wrong 'Content-length'. Obviously, the load should
fail, but this does not mean the test should be run XFail! Subversion
is expected to behave a certain way (i.e., to error), and it does
behave that way. Therefore, the test should test for the failure, and
simply succeed when the failure occurs as expected.

Before I fix this, are there any subtleties I'm missing?

r12644 is the place to look for more context, by the way.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 31 17:55:48 2005

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.