From dc5bdbfc0c326a7a1f07c1b02440517ece5a8dd1 Mon Sep 17 00:00:00 2001
From: apn <apn@opencascade.com>
Date: Thu, 18 Apr 2013 18:53:05 +0400
Subject: [PATCH] Update of test cases that are crashed by cpulimit command

---
 tests/boolean/bsection/N7      | 3 ++-
 tests/bugs/modalg_1/bug19793_2 | 1 +
 tests/bugs/moddata_1/bug22759  | 3 ++-
 tests/bugs/moddata_1/bug54     | 2 ++
 tests/bugs/xde/bug23047_1      | 2 ++
 tests/bugs/xde/bug23047_2      | 1 -
 6 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/tests/boolean/bsection/N7 b/tests/boolean/bsection/N7
index 001be5d1a4..94d9f544df 100644
--- a/tests/boolean/bsection/N7
+++ b/tests/boolean/bsection/N7
@@ -1,8 +1,9 @@
 puts "TODO ?#22911 ALL: An exception was caught"
 puts "TODO ?#22911 ALL: \\*\\* Exception \\*\\*.*"
+puts "TODO ?OCC12345 ALL: Process killed by CPU limit"
 puts "TODO ?#22911 ALL: TEST INCOMPLETE"
 
-cpulimit 900
+cpulimit 1200
 
 restore [locate_data_file lh3d_ro1.brep] a
 isos a 0
diff --git a/tests/bugs/modalg_1/bug19793_2 b/tests/bugs/modalg_1/bug19793_2
index f85ecb6411..c0402bddf3 100755
--- a/tests/bugs/modalg_1/bug19793_2
+++ b/tests/bugs/modalg_1/bug19793_2
@@ -1,3 +1,4 @@
+puts "TODO ?OCC23753 ALL: Process killed by CPU limit"
 puts "TODO ?OCC23753 Mandriva2010: TEST INCOMPLETE"
 
 puts "============"
diff --git a/tests/bugs/moddata_1/bug22759 b/tests/bugs/moddata_1/bug22759
index 194618e477..631f6f8d68 100755
--- a/tests/bugs/moddata_1/bug22759
+++ b/tests/bugs/moddata_1/bug22759
@@ -1,6 +1,7 @@
+puts "TODO ?OCC12345 ALL: Process killed by CPU limit"
 puts "TODO OCC11111 ALL: TEST INCOMPLETE"
 
-cpulimit 500
+cpulimit 30
 
 puts "============"
 puts "OCC22759"
diff --git a/tests/bugs/moddata_1/bug54 b/tests/bugs/moddata_1/bug54
index 816f9f2fa2..3536c317c2 100755
--- a/tests/bugs/moddata_1/bug54
+++ b/tests/bugs/moddata_1/bug54
@@ -2,6 +2,8 @@ if { [array get env os_type] != "" } {
     set os $env(os_type)
 }
 puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
+puts "TODO ?OCC12345 ALL: Process killed by CPU limit"
+puts "TODO ?OCC12345 ALL: TEST INCOMPLETE"
 puts "================"
 puts "OCC54"
 puts "================"
diff --git a/tests/bugs/xde/bug23047_1 b/tests/bugs/xde/bug23047_1
index 7785082cb7..76d5b6c102 100755
--- a/tests/bugs/xde/bug23047_1
+++ b/tests/bugs/xde/bug23047_1
@@ -1,4 +1,6 @@
+puts "TODO ?OCC23047 ALL: Tcl Exception: can't read"
 puts "TODO ?OCC23047 ALL: Faulty OCC23047"
+puts "TODO ?OCC23047 ALL: TEST INCOMPLETE"
 puts "================"
 puts "OCC23047"
 puts "================"
diff --git a/tests/bugs/xde/bug23047_2 b/tests/bugs/xde/bug23047_2
index 7fdbb5181e..6494c02901 100755
--- a/tests/bugs/xde/bug23047_2
+++ b/tests/bugs/xde/bug23047_2
@@ -20,7 +20,6 @@ XRemoveShape D 0:1:1:1 1
 
 set xd [Xdump D]
 
-
 regexp {Free Shapes: ([-0-9.+eE]+)} $xd full FreeShapes
 puts "FreeShapes=${FreeShapes}"