This would be good to have as we encourage more people to use libhugetlbfs who may not fully understand the test suite.
Signed-off-by: Steve Fox <[EMAIL PROTECTED]> diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 7231f9f..d7ab1f9 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -168,6 +168,11 @@ stress_tests () { restore_shm_sysctl } +if [ $UID != 0 ]; then + echo "Only the root user should run the test suite" + exit 1 +fi + while getopts "vVdt:" ARG ; do case $ARG in "v") -- Steve Fox IBM Linux Technology Center ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel