Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
1070-sasl-Adjust-test-data-as-dynamicaly-starte...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1070-sasl-Adjust-test-data-as-dynamicaly-started-supervis.patch of Package erlang
From c3aae3dda5827c417436e7315cb40b2d55c20ed2 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin <ingela@erlang.org> Date: Tue, 10 Sep 2024 09:47:41 +0200 Subject: [PATCH] sasl: Adjust test data as dynamicaly started supervisors are logged at debug level Also rewrite test to not be dependent on timing between log messages. --- lib/sasl/test/rb_SUITE.erl | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/sasl/test/rb_SUITE.erl b/lib/sasl/test/rb_SUITE.erl index ff8a9d543f..a073d60260 100644 --- a/lib/sasl/test/rb_SUITE.erl +++ b/lib/sasl/test/rb_SUITE.erl @@ -271,7 +271,8 @@ filter_date(Config) -> %% Insert some reports in the error log and start rb init_error_logs(), Between1 = calendar:local_time(), - timer:sleep(1000), + ct:sleep(1000), + error_logger:info_report([{rb_SUITE,rb_progress_info_replace}]), Between2 = calendar:local_time(), ok = start_rb(OutFile), @@ -305,28 +306,24 @@ filter_filter_and_date(Config) -> %% Insert some reports in the error log and start rb init_error_logs(), Between1 = calendar:local_time(), - timer:sleep(1000), + ct:sleep(1000), Between2 = calendar:local_time(), error_logger:error_report([{rb_SUITE,rb_test_filter}]), ok = start_rb(OutFile), + error_logger:info_report([{rb_SUITE,rb_progress_info_replace}]), Before = calendar:gregorian_seconds_to_datetime( calendar:datetime_to_gregorian_seconds(calendar:local_time()) - 10), After = calendar:gregorian_seconds_to_datetime( calendar:datetime_to_gregorian_seconds(calendar:local_time()) + 1), - All = check_report(fun() -> rb:show() end,OutFile), - Last = hd(All), - [_,_,_] = rb_filter([{rb_SUITE,"rb_test",re}],{Before,After},OutFile), [_,_] = rb_filter([{rb_SUITE,"rb_test",re}],{Before,Between1},OutFile), [_] = rb_filter([{rb_SUITE,"rb_test",re}],{Between2,After},OutFile), [_] = rb_filter([{rb_SUITE,rb_test_filter}],{Before,After},OutFile), [] = rb_filter([{rb_SUITE,rb_test_filter}],{Before,Between1},OutFile), - [Last] = rb_filter([{rb_SUITE,rb_test_filter,no}],{Between2,After},OutFile), - {_,Str} = Last, + [{_, Str}] = rb_filter([{rb_SUITE,rb_test_filter,no}],{Between2,After},OutFile), false = contains(Str,"rb_test_filter"), - ok. -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor