segfault bizare dans la fonctions qui verifie que la liste est ordonnee

This commit is contained in:
hugogogo
2021-09-27 12:45:07 +02:00
parent db60d412e8
commit 60752e2faf
6 changed files with 25 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ else
exit 0
fi
PRGM=push_swap # path to program
PRGM="push_swap" # path to program
# range of random numbers
RANGE=$(($SIZE * 2))
@@ -33,7 +33,7 @@ LIST=($(shuf -i 0-$RANGE -n $SIZE))
echo -e "${WHITE}test lancé avec la liste de nombres suivantes :${NC}"
echo -e "${LIST[@]}"
OUTPUT=`./$PRGM ${LIST[@]}`
OUTPUT=$(./$PRGM ${LIST[@]})
COUNT=$(echo "$OUTPUT" | wc -l)
RESULT=$(echo "$OUTPUT" | ./checker ${LIST[@]})