diff --git a/test/test.bash b/test/test.bash index afe4d2c..eeb9782 100755 --- a/test/test.bash +++ b/test/test.bash @@ -23,12 +23,12 @@ if [[ $1 == "--setuid" ]]; then sudo chown icfs: ../build/icfs && sudo chmod 4777 ../build/icfs chmod g+w . # needed for icfs to be able to create the database echo "Valgrind will not be used due to setuid compatibility issues." - ../build/icfs -o default_permissions ./protected & + ../build/icfs -o default_permissions ./protected ./.pt.db & sleep 1 else echo "Database protection will not be tested due to the lack of setuid capabilites." echo "To test it, run this script with '--setuid'." - valgrind -s ../build/icfs -o default_permissions ./protected & + valgrind -s ../build/icfs -o default_permissions ./protected ./.pt.db & sleep 5 fi