[LTP] mmapstress06: TCONF on systems without swap space

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Mon Apr 27 15:57:46 CEST 2026


Hi Wei,

On Mon, 27 Apr 2026, Wei Gao wrote:
> mmapstress06: TCONF on systems without swap space

> +#include "tst_memutils.h"

Minor nit: the include lands after the #define ANON_GRAN_PAGES_MAX block
rather than with the other #includes at the top. Consider moving it into
the existing LTP include block for consistency.

> +	if (tst_available_swap() <= 0) {
> +		tst_resm(TCONF, "Test requires swap space to exercise mfile_swap logic");
> +		tst_exit();
> +	}

Reviewed-by: LTP AI Reviewer <ltp-ai@noreply.github.com>

---
Note:

Our agent completed the review of the patch. The full review can be
found at: https://github.com/linux-test-project/ltp-agent/actions/runs/24999033042

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer


More information about the ltp mailing list