search for: tmpfilefd

Displaying 2 results from an estimated 2 matches for "tmpfilefd".

2018 Mar 21
2
[PATCH] tests: regressions: make test-big-heap use a temporary empty file
...lt;stdlib.h> #include <string.h> #include <assert.h> +#include <unistd.h> #include "guestfs.h" #include "guestfs-utils.h" @@ -41,6 +42,8 @@ main (int argc, char *argv[]) const char *s; guestfs_h *g; char *mem, *fmt; + char tmpfile[32]; + int tmpfilefd; /* Allow the test to be skipped. */ s = getenv ("SKIP_TEST_BIG_HEAP"); @@ -50,6 +53,8 @@ main (int argc, char *argv[]) exit (77); } + snprintf (tmpfile, sizeof tmpfile, "test-big-heap.XXXXXX"); + /* Make sure we're using > 1GB in the main process....
2018 Mar 21
0
Re: [PATCH] tests: regressions: make test-big-heap use a temporary empty file
...de <assert.h> > +#include <unistd.h> > > #include "guestfs.h" > #include "guestfs-utils.h" > @@ -41,6 +42,8 @@ main (int argc, char *argv[]) > const char *s; > guestfs_h *g; > char *mem, *fmt; > + char tmpfile[32]; > + int tmpfilefd; > > /* Allow the test to be skipped. */ > s = getenv ("SKIP_TEST_BIG_HEAP"); > @@ -50,6 +53,8 @@ main (int argc, char *argv[]) > exit (77); > } > > + snprintf (tmpfile, sizeof tmpfile, "test-big-heap.XXXXXX"); > + > /* Make su...