]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add memcheck/tests/linux/capget.stderr.exp4 variant
authorMark Wielaard <mark@klomp.org>
Thu, 11 Apr 2024 16:29:01 +0000 (18:29 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 11 Apr 2024 16:39:55 +0000 (18:39 +0200)
Add an expect file for capget where the inheritable bits are set,
when run as root.

memcheck/tests/linux/Makefile.am
memcheck/tests/linux/capget.stderr.exp4 [new file with mode: 0644]

index 29f3b89749c160920b16ac2136e30d1ba660e553..3d06d483cdafe9239b98cf9038661f04b26ca74b 100644 (file)
@@ -10,6 +10,7 @@ EXTRA_DIST = \
        brk.stderr.exp brk.vgtest \
        bug480706.stderr.exp bug480706.vgtest \
        capget.vgtest capget.stderr.exp capget.stderr.exp2 capget.stderr.exp3 \
+       capget.stderr.exp4 \
        debuginfod-check.stderr.exp debuginfod-check.vgtest.in \
        debuginfod-check.pl \
        dlclose_leak-no-keep.stderr.exp dlclose_leak-no-keep.stdout.exp \
diff --git a/memcheck/tests/linux/capget.stderr.exp4 b/memcheck/tests/linux/capget.stderr.exp4
new file mode 100644 (file)
index 0000000..b0cd8ce
--- /dev/null
@@ -0,0 +1,15 @@
+
+Running as root
+capget result:
+effective   0x........
+permitted   0x........
+inheritable 0x........
+
+HEAP SUMMARY:
+    in use at exit: ... bytes in ... blocks
+  total heap usage: ... allocs, ... frees, ... bytes allocated
+
+For a detailed leak analysis, rerun with: --leak-check=full
+
+For lists of detected and suppressed errors, rerun with: -s
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)