Skip to content

Commit

Permalink
Remove acutest_current_test_ setting from acutest_run_, it is done in…
Browse files Browse the repository at this point in the history
… acutest_do_run_
  • Loading branch information
amgross committed Sep 13, 2024
1 parent 31751b4 commit e4633fb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/acutest.h
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,6 @@ acutest_run_(const struct acutest_test_* test, int index, int master_index)
enum acutest_state_ state = ACUTEST_STATE_FAILED;
acutest_timer_type_ start, end;

acutest_current_test_ = test;
acutest_test_already_logged_ = 0;
acutest_timer_get_time_(&start);

Expand Down Expand Up @@ -1329,8 +1328,6 @@ acutest_run_(const struct acutest_test_* test, int index, int master_index)
}
acutest_timer_get_time_(&end);

acutest_current_test_ = NULL;

acutest_test_data_[master_index].state = state;
acutest_test_data_[master_index].duration = acutest_timer_diff_(start, end);
}
Expand Down

0 comments on commit e4633fb

Please sign in to comment.