Commit 43421f9b authored by cs350's avatar cs350
Browse files

Upping timeouts

parent fa1d4cd1
......@@ -33,7 +33,7 @@ do
echo ">TEST=${fname}_${cname}<" >> $LOG
echo ">Program Output<" >> $LOG
P=$(cat $f)
timeout --foreground 60s sys161 -c $c kernel "$P" >> $LOG 2>> $LOG
timeout --foreground 100s sys161 -c $c kernel "$P" >> $LOG 2>> $LOG
if [ $? -eq 124 ];
then
echo "$P has timed out after 60s, this should not occur. Most likely a deadlock" >> $LOG
......
......@@ -38,7 +38,7 @@ for article in numarticles :
seed = str(random.randint(1, 100))
#run the command and capture stderr output
command = f"timeout 60s {inputFileName} {article} {seed} {thread} 2> temp.txt > /dev/null"
command = f"timeout 100s {inputFileName} {article} {seed} {thread} 2> temp.txt > /dev/null"
resultValue = os.system(command)
#check if the resulting funnction fails
......
......@@ -36,7 +36,7 @@ for consumer in numConsumers :
for producer in numProducers :
for ratio in numRatio :
#run the command and capture stderr output
command = f"timeout 10s {inputFileName} {consumer} {producer} {ratio} 2> temp.txt > /dev/null"
command = f"timeout 20s {inputFileName} {consumer} {producer} {ratio} 2> temp.txt > /dev/null"
try:
p = subprocess.run(command, shell=True, check=True)
except Exception as e:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment