Skip to content

Commit 53d611a

Browse files
Mikolaj Maleckimaxsharabayko
authored andcommitted
[test] Added option handling also to non-fixture-based tests
1 parent 3e0ef4b commit 53d611a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_env.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ class TestInit
5353
static void start(int& w_retstatus);
5454
static void stop();
5555

56-
TestInit() { start((ninst)); }
56+
TestInit()
57+
{
58+
start((ninst));
59+
HandlePerTestOptions();
60+
}
5761
~TestInit() { stop(); }
5862

5963
void HandlePerTestOptions();
@@ -115,7 +119,6 @@ class Test: public testing::Test
115119
void SetUp() override final
116120
{
117121
init_holder.reset(new TestInit);
118-
init_holder->HandlePerTestOptions();
119122
setup();
120123
}
121124

0 commit comments

Comments
 (0)