From bbf78c20b07d80eb000d7f65156c72c160f5a50c Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Nov 13 2012 18:36:26 +0000 Subject: fixed sleeptimeout.sh to not run on C5 as there is no 'timeout' available. --- diff --git a/tests/p_coreutils/sleeptimeout.sh b/tests/p_coreutils/sleeptimeout.sh index b63688a..134754c 100755 --- a/tests/p_coreutils/sleeptimeout.sh +++ b/tests/p_coreutils/sleeptimeout.sh @@ -3,6 +3,14 @@ t_Log "$0 checking timeout and sleep" -timeout 1 sleep 2 -test $? -eq 124 && timeout 2 sleep 1 -t_CheckExitStatus $? +if [ $centos_ver = 5 ] + then + t_Log "This is a C5 system. no 'timeout' available. Skipping." + ret_val=0 +else + timeout 1 sleep 2 + test $? -eq 124 && timeout 2 sleep 1 + ret_val=$? +fi + +t_CheckExitStatus $ret_val