Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174392185
D60253.id188496.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D60253.id188496.diff
View Options
diff --git a/contrib/netbsd-tests/lib/libc/gen/t_assert.c b/contrib/netbsd-tests/lib/libc/gen/t_assert.c
--- a/contrib/netbsd-tests/lib/libc/gen/t_assert.c
+++ b/contrib/netbsd-tests/lib/libc/gen/t_assert.c
@@ -28,6 +28,12 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
+
+#if defined(__FreeBSD__)
+/* TODO: upstream this. */
+#undef NDEBUG
+#endif
+
#include <sys/cdefs.h>
__RCSID("$NetBSD: t_assert.c,v 1.3 2017/01/10 15:17:57 christos Exp $");
@@ -43,18 +49,6 @@
#include <string.h>
#include <unistd.h>
-#ifdef __FreeBSD__
-/* TODO: upstream this. */
-static void
-skip_if_ndebug_set(void)
-{
-
-#ifdef NDEBUG
- atf_tc_skip("Testcase requires code to be compiled without -DNDEBUG.");
-#endif
-}
-#endif
-
static void
disable_corefile(void)
{
@@ -86,10 +80,6 @@
pid_t pid;
int sta;
-#ifdef __FreeBSD__
- skip_if_ndebug_set();
-#endif
-
pid = fork();
ATF_REQUIRE(pid >= 0);
@@ -128,10 +118,6 @@
pid_t pid;
int sta;
-#ifdef __FreeBSD__
- skip_if_ndebug_set();
-#endif
-
pid = fork();
ATF_REQUIRE(pid >= 0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 9:17 PM (22 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40147228
Default Alt Text
D60253.id188496.diff (1 KB)
Attached To
Mode
D60253: [tests] lib/libc/gen:assert_test: undefine `NDEBUG`
Attached
Detach File
Event Timeline
Log In to Comment