Remove testcase failing if run as root.
authorMichael Andres <ma@suse.de>
Fri, 22 May 2009 15:03:10 +0000 (17:03 +0200)
committerMichael Andres <ma@suse.de>
Fri, 22 May 2009 15:03:10 +0000 (17:03 +0200)
tests/zypp/PathInfo_test.cc

index 2eb3b2c..148c410 100644 (file)
@@ -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() );
 }