Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
*** 24,34 ****
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
#
--- 24,34 ----
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013, 2016 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
#
*** 58,68 ****
#
# This test should be run on a multi-processor system because otherwise the FS
# will not be concurrently used by the threads
#
! NCPUS=`$PSRINFO | $WC -l`
if [[ -z $NCPUS || $NCPUS -le 1 ]]; then
log_fail "This test should be executed on a multi-processor system."
fi
#
--- 58,68 ----
#
# This test should be run on a multi-processor system because otherwise the FS
# will not be concurrently used by the threads
#
! NCPUS=`psrinfo | wc -l`
if [[ -z $NCPUS || $NCPUS -le 1 ]]; then
log_fail "This test should be executed on a multi-processor system."
fi
#
*** 72,82 ****
log_must $THREADSAPPEND ${TESTDIR}/${TESTFILE}
#
# Check the size of the resulting file
#
! SIZE=`$LS -l ${TESTDIR}/${TESTFILE} | $AWK '{print $5}'`
if [[ $SIZE -ne $FILE_SIZE ]]; then
log_fail "'The length of ${TESTDIR}/${TESTFILE}' doesnt equal 1310720."
fi
log_pass "Multiple thread appends succeeded. File size as expected"
--- 72,82 ----
log_must $THREADSAPPEND ${TESTDIR}/${TESTFILE}
#
# Check the size of the resulting file
#
! SIZE=`ls -l ${TESTDIR}/${TESTFILE} | awk '{print $5}'`
if [[ $SIZE -ne $FILE_SIZE ]]; then
log_fail "'The length of ${TESTDIR}/${TESTFILE}' doesnt equal 1310720."
fi
log_pass "Multiple thread appends succeeded. File size as expected"