Bug 386177: Fixed assertion function. r=wtc NSPR_4_6_BRANCH
authorslavomir.katuscak%sun.com
Mon, 14 Jan 2008 11:39:48 +0000
branchNSPR_4_6_BRANCH
changeset 3906 3c1101242d9b
parent 3893 2355acb36352
push idunknown
push userunknown
push dateunknown
reviewerswtc
bugs386177
Bug 386177: Fixed assertion function. r=wtc
pr/tests/cltsrv.c
pr/tests/provider.c
--- a/pr/tests/cltsrv.c
+++ b/pr/tests/cltsrv.c
@@ -209,20 +209,18 @@ PRLogModuleInfo *cltsrv_log_file = NULL;
     ((_expr)?((void)0):_MY_Assert(# _expr,__FILE__,__LINE__))
 
 #define TEST_ASSERT(_expr) \
     ((_expr)?((void)0):_MY_Assert(# _expr,__FILE__,__LINE__))
 
 static void _MY_Assert(const char *s, const char *file, PRIntn ln)
 {
     PL_PrintError(NULL);
-#if DEBUG
     PR_Assert(s, file, ln);
-#endif
-}  /* _MW_Assert */
+}  /* _MY_Assert */
 
 static PRBool Aborted(PRStatus rv)
 {
     return ((PR_FAILURE == rv) && (PR_PENDING_INTERRUPT_ERROR == PR_GetError())) ?
         PR_TRUE : PR_FALSE;
 }
 
 static void TimeOfDayMessage(const char *msg, PRThread* me)
--- a/pr/tests/provider.c
+++ b/pr/tests/provider.c
@@ -211,20 +211,18 @@ PRLogModuleInfo *cltsrv_log_file = NULL;
     ((_expr)?((void)0):_MY_Assert(# _expr,__FILE__,__LINE__))
 
 #define TEST_ASSERT(_expr) \
     ((_expr)?((void)0):_MY_Assert(# _expr,__FILE__,__LINE__))
 
 static void _MY_Assert(const char *s, const char *file, PRIntn ln)
 {
     PL_PrintError(NULL);
-#if DEBUG
     PR_Assert(s, file, ln);
-#endif
-}  /* _MW_Assert */
+}  /* _MY_Assert */
 
 static PRBool Aborted(PRStatus rv)
 {
     return ((PR_FAILURE == rv) && (PR_PENDING_INTERRUPT_ERROR == PR_GetError())) ?
         PR_TRUE : PR_FALSE;
 }
 
 static void TimeOfDayMessage(const char *msg, PRThread* me)