valgrind/tests/quick-valgrind-sanity/alloc.c
Alexandra Hájková b410fdab03 enable CI gating
gating.yaml only use tier0.functional, not scratch-build.validation.

The scratch-build.validation is for rebuilding the kernel, we don't
really need that as gating rule, since valgrind isn't part of the
kernel build chain.

plans/ci.fmf: Use tmt, not beakerlib, for how.

beakerlib is deprecated.

tests/quick-valgrind-sanity/main.fmf recommend only valgrind[-devel], gcc and make

This test doesn't use c++, fortran or 32bit glibc-devel.
2021-04-17 01:38:10 +02:00

11 lines
193 B
C

#include <stdlib.h>
#include <valgrind/memcheck.h>
int main(int argc, char *argv[])
{
void *buffer = malloc(atoi(argv[1]));
VALGRIND_DO_LEAK_CHECK;
free(buffer);
return 0;
}