The size of the kernel environment depends on the FreeBSD version.
So add a filter for the total of all alocations.
dist_noinst_SCRIPTS = filter_stderr filter_pts dump_stdout filter_sigwait \
filter_scalar filter_realpathat filter_fstat filter_eventfd2 \
toucher1 toucher2 filter_getfsstat filter_context filter_frame \
- filter_supp
+ filter_supp filter_kenv
EXTRA_DIST = \
access.vgtest \
--- /dev/null
+#! /bin/sh
+
+../filter_stderr "$@" |
+
+# want to run without -q to see invalid action message
+# but the size of the kernel environment depends
+# on the FreeBSD version, so we want to filter the size of
+# KENV_DUMP allocation
+
+gsed 's/4,765 bytes allocated/XXX bytes allocated'
prog: kenv
+stderr_filter: filter_kenv