bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_tmpwatch/tmpwatch_test.sh

Athmane Madjoudj d15315
#!/bin/sh
Athmane Madjoudj d15315
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj d15315
Athmane Madjoudj d15315
t_Log "Running $0 - tmpwatch test."
Athmane Madjoudj d15315
Athmane Madjoudj d15315
# create a junk file
Athmane Madjoudj d15315
touch -t '200001010000' /tmp/tf_test
Athmane Madjoudj d15315
Athmane Madjoudj d15315
tmpwatch 24 /tmp
Athmane Madjoudj d15315
Athmane Madjoudj d15315
[ ! -f /tmp/tf_test ]
Athmane Madjoudj d15315
Athmane Madjoudj d15315
t_CheckExitStatus $?