STEP test hostile_boundaries_mesh_in_bounded_time: smaller wild patch (16x16) and a 180 s bound, so it catches hangs without failing on a loaded machine (11 s now, was ~50 s against a 60 s bound)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
1 parent
f9b7604ed1
commit
d44a104dcc
1 file changed
+6
-5
@@ -377,9 +377,10 @@ fn mirrored_revolved_faces_round_trip() {
|
||||
#[test]
|
||||
fn hostile_boundaries_mesh_in_bounded_time() {
|
||||
let t0 = std::time::Instant::now();
|
||||
// A wild 24 × 24 B-spline patch (alternating ±50 mm) bounded by four straight edges that
|
||||
// lie far from it, plus a plane face bounded by a circle 500 mm off the plane.
|
||||
let n = 24;
|
||||
// A wild 16 × 16 B-spline patch (alternating ±50 mm) bounded by four straight edges that
|
||||
// lie far from it, plus a plane face bounded by a circle 500 mm off the plane. The bound
|
||||
// catches a hang, not a slow machine (it took ~50 s at 24 × 24 with the machine loaded).
|
||||
let n = 16;
|
||||
let mut t = String::from(HEAD);
|
||||
let mut rows = Vec::new();
|
||||
for i in 0..n {
|
||||
@@ -404,7 +405,7 @@ fn hostile_boundaries_mesh_in_bounded_time() {
|
||||
"#10=B_SPLINE_SURFACE_WITH_KNOTS('',3,3,({}),.UNSPECIFIED.,.F.,.F.,.F.,({mu}),({mu}),({ku}),({ku}),.UNSPECIFIED.);\n",
|
||||
rows.join(",")
|
||||
);
|
||||
let corners = [(0, 0), (390, 0), (390, 390), (0, 390)];
|
||||
let corners = [(0, 0), (150, 0), (150, 150), (0, 150)];
|
||||
for (k, (x, y)) in corners.iter().enumerate() {
|
||||
t += &format!("#{}=CARTESIAN_POINT('',({x}.,{y}.,300.));\n#{}=VERTEX_POINT('',#{});\n", 20 + k, 30 + k, 20 + k);
|
||||
}
|
||||
@@ -435,7 +436,7 @@ fn hostile_boundaries_mesh_in_bounded_time() {
|
||||
let _ = measure(&b.body);
|
||||
}
|
||||
}
|
||||
assert!(t0.elapsed().as_secs_f64() < 60.0, "took {:?}", t0.elapsed());
|
||||
assert!(t0.elapsed().as_secs_f64() < 180.0, "took {:?}", t0.elapsed());
|
||||
}
|
||||
|
||||
/// A cylinder written as a surface of revolution, oriented the ISO 10303-42 way (normal
|
||||
|
||||
Reference in new issue
Block a user