]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Fix nonsense arguments to ps stub
authorMartin Schwenke <martin@meltin.net>
Fri, 12 Feb 2021 07:57:58 +0000 (18:57 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 28 May 2021 06:46:29 +0000 (06:46 +0000)
These were fine (though still lazy) when these tests were the only
user of this stub.  However, the ps stub is about to be enhanced, so
fix these uses of it to represent the intended usage.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/UNIT/eventscripts/05.system.monitor.015.sh
ctdb/tests/UNIT/eventscripts/05.system.monitor.017.sh
ctdb/tests/UNIT/eventscripts/05.system.monitor.018.sh

index 0091c429ac1c23981fbc20ef739921d485f59ca5..76b73a34284f3c0290fc2b0513c688221d5b1ac7 100755 (executable)
@@ -14,7 +14,7 @@ set_mem_usage 90 90
 required_result 1 <<EOF
 ERROR: System memory utilization 90% >= threshold 85%
 $FAKE_PROC_MEMINFO
-$(ps foobar)
+$(ps auxfww)
 EOF
 
 simple_test
index 8eef4afc85d132311fe3e6ff691118fe1c43f6e6..b2e50292a0344ea372cb2328988fe6d276e3747c 100755 (executable)
@@ -14,7 +14,7 @@ set_mem_usage 87 87
 required_result 1 <<EOF
 ERROR: System memory utilization 87% >= threshold 80%
 $FAKE_PROC_MEMINFO
-$(ps foobar)
+$(ps auxfww)
 EOF
 
 simple_test
index cd9305f8826ff25f051ad32604e4be6a5549555d..427adc61eedc968ecc413d63728e92057e191729 100755 (executable)
@@ -41,7 +41,7 @@ set_mem_usage 80 80
 required_result 1 <<EOF
 ERROR: System memory utilization 80% >= threshold 80%
 $FAKE_PROC_MEMINFO
-$(ps foobar)
+$(ps auxfww)
 EOF
 simple_test
 
@@ -72,7 +72,7 @@ set_mem_usage 81 81
 required_result 1 <<EOF
 ERROR: System memory utilization 81% >= threshold 80%
 $FAKE_PROC_MEMINFO
-$(ps foobar)
+$(ps auxfww)
 EOF
 simple_test