Skip to content

Commit

Permalink
mmapstress01: refactor to tst_test framework
Browse files Browse the repository at this point in the history
Use ltp framework and apply make check corrections.  Reorder functions
and variables.  Use safe macros.
Drop leavefile option.
Build tests with FILE_OFFSET_BITS=64 instead of doing LARGE_FILE checks
to switch between 32 and 64 bit types and syscalls.
Define fsize bounds by file offset bits.
Move sighandler to setup and remove sig blocks.
Add option to specify pattern.
Set default nprocs to ncpus with min of 1 and max of 20.

Signed-off-by: Edward Liaw <edliaw@google.com>
Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>
  • Loading branch information
Edward Liaw via ltp authored and Richard Palethorpe committed Nov 8, 2022
1 parent a15eb3c commit 88321bf
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 627 deletions.
2 changes: 2 additions & 0 deletions testcases/kernel/mem/mmapstress/Makefile
Expand Up @@ -5,3 +5,5 @@ top_srcdir ?= ../../../..

include $(top_srcdir)/include/mk/testcases.mk
include $(top_srcdir)/include/mk/generic_leaf_target.mk

mmapstress01: CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

0 comments on commit 88321bf

Please sign in to comment.