Skip to content

Commit

Permalink
do not return early
Browse files Browse the repository at this point in the history
  • Loading branch information
wsipak committed Jan 9, 2025
1 parent e439d7f commit a7ce3ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testbench/tests/pmp_random/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,6 @@ int main () {
} else {
printf(" fail\n");
any_fail = 1;
printf(" random data used:\n addr: 0x%x,\n cfg: 0x%x\n", rand_address[rand_test_i], rand_config[rand_test_i]);
return 0;
}

// Test reading. Read area from user mode and compare against the
Expand Down Expand Up @@ -451,6 +449,8 @@ int main () {
printf("not testing exec, region size is 0x%x\n", region_size);
}

if (any_fail)
printf(" random data used:\n addr: 0x%x,\n cfg: 0x%x\n", rand_address[rand_test_i], rand_config[rand_test_i]);
// Count fails
failed += any_fail;
}
Expand Down

0 comments on commit a7ce3ec

Please sign in to comment.