Skip to content

Commit be40fcb

Browse files
committed
set current time on tick for test_cpp
1 parent 797ea7b commit be40fcb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests_cpp/tests.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// Gobals
1616

17-
pa_time_t current_time_ms;
17+
pa_time_t current_time_ms{};
1818

1919
// Helpers
2020

@@ -893,8 +893,7 @@ pa_activity (TestValSignals, pa_ctx_tm(pa_use(TestValSignalsBody))) {
893893

894894
#define run_test(ns, nm) \
895895
pa_use_ns(ns, nm); \
896-
pa_init(nm); \
897-
while (pa_tick(nm) == PA_RC_WAIT) {}
896+
while (pa_tick_tm(current_time_ms, nm) == PA_RC_WAIT) {}
898897

899898
int main(int argc, char* argv[]) {
900899
std::cout << "Start" << std::endl;

0 commit comments

Comments
 (0)