Skip to contentSkip to conversation

cgroups/cgroup_regression_test: fix test_10 cleanup

PATCH In review Jan Stancek 1 participant 1 message Jul 22, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v3 5/6 cgroups/cgroup_regression_test: fix test_10 cleanup

test_10 can leave cgroups umounted before cleanup, make sure cgroups are mounted before doing cleanup. Also keep stderr output from rmdir and umount, if these fail it's better to have it in logs.

---
  .../controllers/cgroup/cgroup_regression_test.sh   |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)
testcases/kernel/controllers/cgroup/cgroup_regression_test.sh +3 -2
index 09563ef..19c30fe 100755
@@ -502,8 +502,9 @@ test_10()
 	wait $pid1
 	wait $pid2
 
-	rmdir cgroup/0 2> /dev/null
-	umount cgroup/ 2> /dev/null
+	mount -t cgroup none cgroup 2> /dev/null
+	rmdir cgroup/0
+	umount cgroup/
 
 	check_kernel_bug
 	if [ $? -eq 1 ]; then

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list