]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
radclient: Fix 'invalid attribute' test
authorJorge Pereira <jpereiran@gmail.com>
Thu, 28 Jan 2021 20:55:19 +0000 (17:55 -0300)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 28 Jan 2021 23:03:28 +0000 (23:03 +0000)
It is necessary to match the output files built with/without -NDEBUG

src/tests/radclient/all.mk
src/tests/radclient/auth_invalid_attr_5.out

index 6c0b338f5ed81e224429fd19b2d63f50449f0b60..bc6d25a5d14e40aa2602421a1695f2d3c0d7df80 100644 (file)
@@ -59,6 +59,12 @@ $(OUTPUT)/%: $(DIR)/% | $(TEST).radiusd_kill $(TEST).radiusd_start
 #
        $(Q)if [ "$$(uname -s)" = "Darwin" ]; then sed -i .bak 's/via lo0/via lo/g' $(FOUND); fi
 #
+#      Remove all entries with "^_EXIT.*CALLED .*/"
+#      It is necessary to match all builds with/without -DNDEBUG
+#
+       $(Q)mv -f $(FOUND) $(FOUND).bak
+       $(Q)sed '/^_EXIT.*CALLED .*/d' $(FOUND).bak > $(FOUND)
+#
 #      Checking.
 #
 #      1. diff between src/test/radclient/$test.out & build/test/radclient/$test.out
index f1dc95cf704cd43b6666ce461c36074624709b3a..4b90b3be0533c15942504ee3c024ec84dcb3ed4c 100644 (file)
@@ -1,3 +1,2 @@
 (0) Error parsing "src/tests/radclient/auth_invalid_attr_5.txt": Unknown attribute  "This-Is-Invalid-Attribute" for parent "RADIUS"
 radclient: Failed parsing input files
-_EXIT(1) CALLED src/bin/radclient.c[1429]