segfault bizare dans la fonctions qui verifie que la liste est ordonnee
This commit is contained in:
@@ -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[@]})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user