Revision: 74173
http://sourceforge.net/p/brlcad/code/74173
Author: starseeker
Date: 2019-10-18 14:43:23 +0000 (Fri, 18 Oct 2019)
Log Message:
-----------
Actually make the test succeed/fail based on correctness of answer.
Modified Paths:
--------------
brlcad/trunk/src/libbg/tests/trimesh_pt_in.c
Modified: brlcad/trunk/src/libbg/tests/trimesh_pt_in.c
===================================================================
--- brlcad/trunk/src/libbg/tests/trimesh_pt_in.c 2019-10-17 22:29:24 UTC
(rev 74172)
+++ brlcad/trunk/src/libbg/tests/trimesh_pt_in.c 2019-10-18 14:43:23 UTC
(rev 74173)
@@ -71,6 +71,9 @@
bu_exit(-1, "Fatal error - mesh validity test failed\n");
} else {
bu_log("Status: %s\n", (status) ? "inside" : "outside");
+ if (status) {
+ bu_exit(-1, "Fatal error - test point is outside mesh, but
reported inside\n");
+ }
}
VSET(TP, 0, 0, 0);
@@ -80,6 +83,9 @@
bu_exit(-1, "Fatal error - mesh validity test failed\n");
} else {
bu_log("Status: %s\n", (status) ? "inside" : "outside");
+ if (!status) {
+ bu_exit(-1, "Fatal error - test point is inside mesh, but
reported outside\n");
+ }
}
return 0;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits