From 208292fd21d76eebb7eb7574757dfe381a9430ac Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Thu, 11 Oct 2012 17:12:17 +0400 Subject: [PATCH] zdtm: add a smoke test for cow memory (v2) A test allocates and filles one page, creates a new child, then compares pfn-s for both processes. v2: set a position on each iteration Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm/live/static/Makefile | 1 + test/zdtm/live/static/cow00.c | 113 +++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 test/zdtm/live/static/cow00.c diff --git a/test/zdtm/live/static/Makefile b/test/zdtm/live/static/Makefile index 2e60244d9..06087fcde 100644 --- a/test/zdtm/live/static/Makefile +++ b/test/zdtm/live/static/Makefile @@ -65,6 +65,7 @@ TST_NOFILE = \ session01 \ socket-ext \ unhashed_proc \ + cow00 \ # jobctl00 \ TST_FILE = \ diff --git a/test/zdtm/live/static/cow00.c b/test/zdtm/live/static/cow00.c new file mode 100644 index 000000000..2782c2d0b --- /dev/null +++ b/test/zdtm/live/static/cow00.c @@ -0,0 +1,113 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "zdtmtst.h" + +const char *test_doc = "Check that cow memory are restored"; +const char *test_author = "Andrey Vagin