Describe the bug

When doing "make check" all test pass on an intel Mac running Monterey but the "trim on SET with big value" test fails on intel and silicon Macs running Ventura

To reproduce

run make then make test

Expected behavior

On intel Mac running Monterey 12.6.7 all tests pass so expect all tests to pass on Macs running Ventura

Additional information

All tests pass with Xcode 14.2 under macOS Monterey 12.6.7

With Xcode 14.3.1 under macOS Ventura 13.4.1 (c) on intel and silicon Macs

$ make test cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make test CC Makefile.dep Cleanup: may take some time... OK Starting test server at port 21079 ... [ok]: MULTI with BGREWRITEAOF (225 ms) [ok]: GETRANGE fuzzing (743 ms) [err]: trim on SET with big value in tests/unit/type/string.tcl Expected [r memory usage key] < 42000 (context: type source line 478 file /Users/selasley/src/redis-7.0.12/tests/unit/type/string.tcl cmd {assert {[r memory usage key] < 42000}} proc ::test) [ok]: Extended SET can detect syntax errors (0 ms) ...

!!! WARNING The following tests failed:

*** [err]: trim on SET with big value in tests/unit/type/string.tcl Expected [r memory usage key] < 42000 (context: type source line 478 file /Users/selasley/src/redis-7.0.12/tests/unit/type/string.tcl cmd {assert {[r memory usage key] < 42000}} proc ::test) Cleanup: may take some time... OK make[1]: *** [test] Error 1 make: *** [test] Error 2

Comment From: madolson

It looks like in the 7.0 branch we are missing the jemalloc check, https://github.com/redis/redis/blob/8e73f9d34821a937165884f13a2981883f44a074/tests/unit/type/string.tcl#L472C11-L472C37 which is present from the unstable branch https://github.com/redis/redis/blob/2495b90a647f9f9987202efd29647f81f217b8ad/tests/unit/type/string.tcl#L500.

Looks like it was fixed in https://github.com/redis/redis/pull/11878, but not backported.

Comment From: oranagra

closing this, as i'm currently in the process of backporting the "fix"