selftests/futex: Check ANSI terminal color support
[cascardo/linux.git] / tools / testing / selftests / futex / run.sh
index 4126312..88bcb17 100755 (executable)
@@ -23,7 +23,7 @@
 
 # Test for a color capable shell and pass the result to the subdir scripts
 USE_COLOR=0
-tput setf 7
+tput setf 7 || tput setaf 7
 if [ $? -eq 0 ]; then
     USE_COLOR=1
     tput sgr0