ref: refs/heads/master
commit 2c7f69e6af233228faa8006b125ee5d81b86d90b
Author: Michael Andres
Date: Fri May 22 17:03:10 2009 +0200
Remove testcase failing if run as root.
---
tests/zypp/PathInfo_test.cc | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/tests/zypp/PathInfo_test.cc b/tests/zypp/PathInfo_test.cc
index 2eb3b2c..148c410 100644
--- a/tests/zypp/PathInfo_test.cc
+++ b/tests/zypp/PathInfo_test.cc
@@ -209,10 +209,4 @@ BOOST_AUTO_TEST_CASE(test_exchange)
BOOST_CHECK_EQUAL( filesystem::exchange( a, b ), 0 );
BOOST_CHECK( PathInfo(a).isFile() );
BOOST_CHECK( PathInfo(b).isDir() );
-
- // Exchange with location that can't be created:
- BOOST_CHECK_EQUAL( chmod( b.dirname(), 0555 ), 0 );
- BOOST_CHECK_EQUAL( filesystem::exchange( a, b ), EACCES );
- BOOST_CHECK( PathInfo(a).isFile() );
- BOOST_CHECK( PathInfo(b).isDir() );
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org