#!/bin/sh # # Test Case 4 # export TCID="cpuhotplug04" export TST_TOTAL=1 # Includes: . test.sh . cpuhotplug_testsuite.sh . cpuhotplug_hotplug.sh cat < /dev/null; then tst_brkm TFAIL "Have we just offlined the last CPU?" else tst_resm TPASS "System prevented us from offlining the last CPU - $i" fi else if ! offline_cpu $i; then tst_brkm TFAIL "Could not offline $i" fi fi done LOOP_COUNT=$((LOOP_COUNT+1)) done tst_resm TPASS "Success" tst_exit