Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bctoolbox for openSUSE:Factory 
checked in at 2023-02-14 16:47:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bctoolbox (Old)
 and      /work/SRC/openSUSE:Factory/.bctoolbox.new.27156 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bctoolbox"

Tue Feb 14 16:47:38 2023 rev:40 rq:1065731 version:5.2.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/bctoolbox/bctoolbox.changes      2023-01-17 
17:36:27.273571133 +0100
+++ /work/SRC/openSUSE:Factory/.bctoolbox.new.27156/bctoolbox.changes   
2023-02-14 16:48:17.251457672 +0100
@@ -1,0 +2,6 @@
+Tue Feb 14 11:19:49 UTC 2023 - Avinesh Kumar <avinesh.ku...@suse.com>
+
+- Update to version 5.2.16:
+  * minor changes 
+
+-------------------------------------------------------------------

Old:
----
  bctoolbox-5.2.9.tar.bz2

New:
----
  bctoolbox-5.2.16.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bctoolbox.spec ++++++
--- /var/tmp/diff_new_pack.ckRQFP/_old  2023-02-14 16:48:17.759460671 +0100
+++ /var/tmp/diff_new_pack.ckRQFP/_new  2023-02-14 16:48:17.763460695 +0100
@@ -18,7 +18,7 @@
 
 %define sover   1
 Name:           bctoolbox
-Version:        5.2.9
+Version:        5.2.16
 Release:        0
 Summary:        Utility library for software from Belledonne Communications
 License:        GPL-3.0-or-later

++++++ bctoolbox-5.2.9.tar.bz2 -> bctoolbox-5.2.16.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bctoolbox-5.2.9/include/bctoolbox/tester.h 
new/bctoolbox-5.2.16/include/bctoolbox/tester.h
--- old/bctoolbox-5.2.9/include/bctoolbox/tester.h      2022-12-16 
09:23:47.000000000 +0100
+++ new/bctoolbox-5.2.16/include/bctoolbox/tester.h     2023-01-16 
09:38:20.000000000 +0100
@@ -151,13 +151,16 @@
 */
 BCTBX_PUBLIC int bc_assert(const char* file, int line, int predicate, const 
char* format);
 
-#define _BC_ASSERT_PRED(name, pred, actual, expected, type, ...) \
-       do { \
-               char format[4096] = {0}; \
-               type cactual = (actual); \
-               type cexpected = (expected); \
-               snprintf(format, 4096, name "(" #actual ", " #expected ") - " 
__VA_ARGS__); \
-               bc_assert(__FILE__, __LINE__, pred, format); \
+#define _BC_ASSERT_PRED(name, pred, actual, expected, type, ...)               
                                        \
+       do {                                                                    
                                           \
+               char format[4096] = {0};                                        
                                               \
+               type cactual = (actual);                                        
                                               \
+               type cexpected = (expected);                                    
                                               \
+               int status = snprintf(format, 4096, name "(" #actual ", " 
#expected ") - " __VA_ARGS__);                       \
+               if (status < 0) { /* We can't really do anything on truncation, 
but we cannot ignore errors */                 \
+                       abort();                                                
                                                   \
+               }                                                               
                                               \
+               bc_assert(__FILE__, __LINE__, pred, format);                    
                                               \
        } while (0)
 
 #define BC_PASS(msg) bc_assert(__FILE__, __LINE__, TRUE, "BC_PASS(" #msg ").")
@@ -172,14 +175,22 @@
 #define BC_ASSERT_PTR_NOT_NULL(value) bc_assert(__FILE__, __LINE__, ((value) 
!= NULL), "BC_ASSERT_PTR_NOT_NULL(" #value ")")
 
 #define BC_ASSERT_STRING_NOT_EQUAL(actual, expected) 
_BC_ASSERT_PRED("BC_ASSERT_STRING_NOT_EQUAL", (strcmp((const char*)(cactual), 
(const char*)(cexpected))), actual, expected, const char*, "Expected NOT %s but 
it was.", cexpected)
-#define BC_ASSERT_NSTRING_EQUAL(actual, expected, count) 
_BC_ASSERT_PRED("BC_ASSERT_NSTRING_EQUAL", !(strncmp((const char*)(cactual), 
(const char*)(cexpected), (size_t)(count))), actual, expected, const char*, 
"Expected %*s but was %*s.", (int)(count), cexpected, (int)(count), cactual)
+#define BC_ASSERT_NSTRING_EQUAL(actual, expected, count)                       
                                        \
+       _BC_ASSERT_PRED("BC_ASSERT_NSTRING_EQUAL",                              
                                           \
+                       !(strncmp((const char*)(cactual), (const 
char*)(cexpected), (size_t)(count))), actual, expected,   \
+                       const char*, "Expected %*s but was %*s.", (int)(count), 
cexpected ? cexpected : "nullptr",         \
+                       (int)(count), cactual ? cactual : "nullptr")
 #define BC_ASSERT_NSTRING_NOT_EQUAL(actual, expected, count) 
_BC_ASSERT_PRED("BC_ASSERT_NSTRING_NOT_EQUAL", (strncmp((const char*)(cactual), 
(const char*)(cexpected), (size_t)(count))), actual, expected, const char*, 
"Expected %*s but it was.", (int)count, cexpected)
 #define BC_ASSERT_DOUBLE_EQUAL(actual, expected, granularity) 
_BC_ASSERT_PRED("BC_ASSERT_DOUBLE_EQUAL", ((fabs((double)(cactual) - 
(cexpected)) <= fabs((double)(granularity)))), actual, expected, double, 
"Expected %f but was %f.", cexpected, cactual)
 #define BC_ASSERT_DOUBLE_NOT_EQUAL(actual, expected, granularity) 
_BC_ASSERT_PRED("BC_ASSERT_DOUBLE_NOT_EQUAL", ((fabs((double)(cactual) - 
(cexpected)) > fabs((double)(granularity)))), actual, expected, double, 
"Expected %f but was %f.", cexpected, cactual)
 
 #define BC_ASSERT_EQUAL(actual, expected, type, type_format) 
_BC_ASSERT_PRED("BC_ASSERT_EQUAL", ((cactual) == (cexpected)), actual, 
expected, type, "Expected " type_format " but was " type_format ".", cexpected, 
cactual)
 #define BC_ASSERT_NOT_EQUAL(actual, expected, type, type_format) 
_BC_ASSERT_PRED("BC_ASSERT_NOT_EQUAL", ((cactual) != (cexpected)), actual, 
expected, type, "Expected NOT " type_format " but it was.", cexpected)
-#define BC_ASSERT_STRING_EQUAL(actual, expected) 
_BC_ASSERT_PRED("BC_ASSERT_STRING_EQUAL", cactual && cexpected && 
!(strcmp((const char*)(cactual), (const char*)(cexpected))), actual, expected, 
const char*, "Expected %s but was %s.", cexpected, cactual)
+#define BC_ASSERT_STRING_EQUAL(actual, expected)                               
                                        \
+       _BC_ASSERT_PRED("BC_ASSERT_STRING_EQUAL",                               
                                           \
+                       cactual&& cexpected && !(strcmp((const char*)(cactual), 
(const char*)(cexpected))), actual,        \
+                       expected, const char*, "Expected %s but was %s.", 
cexpected ? cexpected : "nullptr",               \
+                       cactual ? cactual : "nullptr")
 #define BC_ASSERT_GREATER(actual, min, type, type_format) 
_BC_ASSERT_PRED("BC_ASSERT_GREATER", ((cactual) >= (cexpected)), actual, min, 
type, "Expected at least " type_format " but was " type_format ".", cexpected, 
cactual)
 #define BC_ASSERT_LOWER(actual, max, type, type_format) 
_BC_ASSERT_PRED("BC_ASSERT_LOWER", ((cactual) <= (cexpected)), actual, max, 
type, "Expected at most " type_format " but was " type_format ".", cexpected, 
cactual)
 #define BC_ASSERT_GREATER_STRICT(actual, min, type, type_format) 
_BC_ASSERT_PRED("BC_ASSERT_GREATER", ((cactual) > (cexpected)), actual, min, 
type, "Expected more than " type_format " but was " type_format ".", cexpected, 
cactual)

Reply via email to