Skip to content

Commit

Permalink
Fixed check stack usage script
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrug-rdx committed Nov 28, 2023
1 parent 89185d3 commit b3ea587
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions check_stack_usage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
set -e

PACKAGE=radix-engine-tests
EXEC=arguments
TARGET=system
FILE=arguments
TEST=vector_of_buckets_argument_should_succeed

# Return error if stack usage greater than
Expand All @@ -23,7 +24,7 @@ function get_stack_usage() {
stack=$(( $low + ($high - $low) / 2))
echo checking stack $stack

if RUST_MIN_STACK=$stack cargo test -p $PACKAGE --test $EXEC -- $TEST >$output 2>&1 ; then
if RUST_MIN_STACK=$stack cargo test -p $PACKAGE --test $TARGET $FILE::$TEST -- >$output 2>&1 ; then
if grep 'stack overflow' $output ; then
cat $output
echo "unexpected error occured"
Expand Down

0 comments on commit b3ea587

Please sign in to comment.