* tests/test-openat2.c: Include ignore-value.h.
(do_prepare): Remove left-overs on disk.
* modules/openat2-tests (Depends-on): Add ignore-value.
+2025-11-01 Bruno Haible <bruno@clisp.org>
+
+ openat2 tests: Avoid gratuitous test failure when debugging.
+ * tests/test-openat2.c: Include ignore-value.h.
+ (do_prepare): Remove left-overs on disk.
+ * modules/openat2-tests (Depends-on): Add ignore-value.
+
2025-11-01 Bruno Haible <bruno@clisp.org>
fprintftime: Return -1 on output error.
Depends-on:
close
fcntl
+ignore-value
mkdirat
stdcountof-h
stdint-h
# include <signal.h>
#endif
+#include "ignore-value.h"
#include "macros.h"
#define BASE "test-openat2.t"
static void
do_prepare ()
{
+ /* Remove any leftovers from a previous partial run. */
+ ignore_value (system ("rm -rf " BASE "*"));
+
/*
Construct a test directory with the following structure: