Fix the bugs in hwpoison related test cases

Fix two bugs in two test cases.
1) In the test for disk file soft off-line, it often fails
because it is mmaped via shared mode. Now chaning it
to private mode to fix wider test environment.

2) in run_soft.sh there is one spell mistake so that some
test case will fail.

Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
diff --git a/cases/function/hwpoison/run_soft.sh b/cases/function/hwpoison/run_soft.sh
index 6d41f4e..d5f2a2b 100755
--- a/cases/function/hwpoison/run_soft.sh
+++ b/cases/function/hwpoison/run_soft.sh
@@ -32,7 +32,7 @@
 
 echo "------------------------------------------------------------------------"
 echo "Running random_offline (random soft offline test for 60 seconds)"
-run_test "./random_offline -t 60" sucess
+run_test "./random_offline -t 60" success
 
 free_resources
 
diff --git a/cases/function/hwpoison/tsoftinj.c b/cases/function/hwpoison/tsoftinj.c
index c2dfc6c..5afb234 100644
--- a/cases/function/hwpoison/tsoftinj.c
+++ b/cases/function/hwpoison/tsoftinj.c
@@ -93,12 +93,12 @@
 {
 	char fn[100];
 	snprintf(fn, sizeof fn, TMPDIR "~test%u", getpid());
-	printf("shared, diskbacked\n");
+	printf("private, diskbacked\n");
 	int fd = open(fn, O_RDWR|O_CREAT|O_TRUNC, 0644);
 	if (fd < 0) err("open tmpfile");
 	write(fd, empty, sizeof empty);
 	char *p = checked_mmap(NULL, PS, PROT_READ|PROT_WRITE, 
-			MAP_SHARED|flags, fd, 0);
+			MAP_PRIVATE|flags, fd, 0);
 	*(volatile int *)p = 1;
 	offline(ndesc(fn, "disk backed", name), p);
 	munmap(p, PS);
@@ -185,7 +185,7 @@
 	check(&count, "anonymous mlock", 1);
 	disk_backed("disk backed", 0);
 	check(&count, "disk backed", 1);
-	disk_backed("disk backed mlock", 0);
+	disk_backed("disk backed mlock", MAP_LOCKED);
 	check(&count, "disk backed mlock", 1);
 	shm_hugepage("shm hugepage", 0);
 	check(&count, "shm hugepage", HPS / PS);