LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0288-Do-not-run-tests-that-conflicts-with-dirty-scheduler.patch of Package erlang (Project home:Ledest:erlang:20)

From e08d90c51ad47b64f05bb1d51d9595b642637b9f Mon Sep 17 00:00:00 2001
From: Rickard Green <rickard@erlang.org>
Date: Wed, 25 Apr 2018 16:05:03 +0200
Subject: [PATCH] Do not run tests that conflicts with dirty schedulers test

---
 erts/emulator/test/statistics_SUITE.erl | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/erts/emulator/test/statistics_SUITE.erl b/erts/emulator/test/statistics_SUITE.erl
index 029a6de897..3f2897242e 100644
--- a/erts/emulator/test/statistics_SUITE.erl
+++ b/erts/emulator/test/statistics_SUITE.erl
@@ -310,6 +310,13 @@ scheduler_wall_time_all(Config) when is_list(Config) ->
     scheduler_wall_time_test(scheduler_wall_time_all).
 
 scheduler_wall_time_test(Type) ->
+    case string:find(erlang:system_info(system_version),
+                     "dirty-schedulers-TEST") == nomatch of
+        true -> run_scheduler_wall_time_test(Type);
+        false -> {skip, "Cannot be run with dirty-schedulers-TEST build"}
+    end.
+
+run_scheduler_wall_time_test(Type) ->
     %% Should return undefined if system_flag is not turned on yet
     undefined = statistics(Type),
     %% Turn on statistics
-- 
2.16.3