From d29eb2ede6475e3546bd08a2b67a1519b256c6bc Mon Sep 17 00:00:00 2001
From: "Lucas A. M. Magalhaes" <lamm@linux.ibm.com>
Date: Thu, 16 Jul 2020 10:18:51 -0300
Subject: [PATCH] test: fix util_pooset tests to work without SDS

Signed-off-by: Lucas A. M. Magalhaes <lamm@linux.ibm.com>
---
 src/test/util_poolset/grep0.log.match  | 19 +++++++++++++++++++
 src/test/util_poolset/grep0w.log.match | 19 +++++++++++++++++++
 src/test/util_poolset/grep9.log.match  | 19 +++++++++++++++++++
 3 files changed, 57 insertions(+)

diff --git a/src/test/util_poolset/grep0.log.match b/src/test/util_poolset/grep0.log.match
index 7b434ff16..c47bb9380 100644
--- a/src/test/util_poolset/grep0.log.match
+++ b/src/test/util_poolset/grep0.log.match
@@ -8,6 +8,11 @@ $(OPT)compiled with support for Valgrind drd
 $(OPT)compiled with support for shutdown state
 $(OPT)compiled with libndctl 63+
 open "$(nW)/testset0": No such file or directory
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
 size 1000000 smaller than 2097152
 size 1000000 smaller than 2097152
 open "$(nW)/nodir/testfile62": No such file or directory
@@ -19,7 +24,21 @@ size 12288 smaller than 2097152
 size 12288 smaller than 2097152
 file size does not match config: $(nW)testfile142, 4194304 != 8388608
 file size does not match config: $(nW)testfile152, 3145728 != 4194304
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
 Non-empty file detected
 Non-empty file detected
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
 open "$(nW)/testset23": Permission denied
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
 reservation pool size 1048576 smaller than 4194304
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
diff --git a/src/test/util_poolset/grep0w.log.match b/src/test/util_poolset/grep0w.log.match
index c1756cd8b..d86cfec9c 100644
--- a/src/test/util_poolset/grep0w.log.match
+++ b/src/test/util_poolset/grep0w.log.match
@@ -3,6 +3,11 @@ ut version 1.0
 src version: $(nW)
 $(OPT)compiled with support for shutdown state
 open "$(nW)testset0": No such file or directory
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
 size 131072 smaller than 2097152
 size 131072 smaller than 2097152
 open "$(nW)testfile62": No such file or directory
@@ -14,7 +19,21 @@ size 1048576 smaller than 2097152
 size 1048576 smaller than 2097152
 file size does not match config: $(nW)testfile142, 4194304 != 8388608
 file size does not match config: $(nW)testfile152, 4194303 != 4194304
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
 Non-empty file detected
 Non-empty file detected
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
 open "$(nW)testset23": Permission denied
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
 reservation pool size 3145728 smaller than 4194304
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
+$(OPT)Getting unsafe shutdown count is not supported on this system
diff --git a/src/test/util_poolset/grep9.log.match b/src/test/util_poolset/grep9.log.match
index 01ff834b3..7ad3bf3cf 100644
--- a/src/test/util_poolset/grep9.log.match
+++ b/src/test/util_poolset/grep9.log.match
@@ -8,6 +8,11 @@ $(OPT)compiled with support for Valgrind drd
 $(OPT)compiled with support for shutdown state
 $(OPT)compiled with libndctl 63+
 open "$(nW)/testset0": No such file or directory
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
 size 1000000 smaller than 2097152
 size 1000000 smaller than 2097152
 open "$(nW)/nodir/testfile62": No such file or directory
@@ -19,7 +24,21 @@ size 199680 smaller than 2097152
 size 199680 smaller than 2097152
 file size does not match config: $(nW)testfile142, 4194304 != 8388608
 file size does not match config: $(nW)testfile152, 3145728 != 4194304
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
 Non-empty file detected
 Non-empty file detected
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
 open "$(nW)/testset23": Permission denied
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
 reservation pool size 1048576 smaller than 4194304
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
+$(OPT)Unsafe shutdown count is not supported for this source
-- 
GitLab