1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

Add -DTESTSUITE and use it from extras/build-tests/nix/build.

In particular, this disables default +F for #__SYNC__ channels.
The test suite has a "+F off" but when on 3 servers, each 75
clones are connecting, the MODE is too late and the join limit
is already reached sometimes. Causing tests to fail.
This commit is contained in:
Bram Matthys
2026-02-28 15:26:57 +01:00
parent 426289e377
commit 648a10494f
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ else
fi fi
# -DRAWCMDLOGGING was dropped, but can be useful for debugging # -DRAWCMDLOGGING was dropped, but can be useful for debugging
export CPPFLAGS="$CPPFLAGS -DFAKELAG_CONFIGURABLE -DNOREMOVETMP" export CPPFLAGS="$CPPFLAGS -DFAKELAG_CONFIGURABLE -DNOREMOVETMP -DTESTSUITE"
# !! skipped for now: extras/build-tests/nix/select-config $BUILDCONFIG !! # !! skipped for now: extras/build-tests/nix/select-config $BUILDCONFIG !!
# !! temporary use this: # !! temporary use this:
+6
View File
@@ -1205,6 +1205,12 @@ int cmodef_channel_create(Channel *channel)
ChannelFloodProtection *base; ChannelFloodProtection *base;
ChannelFloodProtection *fld; ChannelFloodProtection *fld;
#ifdef TESTSUITE
/* Sync channels for the test suite are exempt */
if (!strncasecmp(channel->name, "#__SYNC__", 9))
return 0;
#endif
if (!cfg.default_profile) if (!cfg.default_profile)
return 0; return 0;