From c36a2b00e6a487f988a7286ccb9c8968a937f30c Mon Sep 17 00:00:00 2001
From: Florian Fischer <florian.fl.fischer@fau.de>
Date: Wed, 11 Sep 2019 17:13:07 +0200
Subject: [PATCH] abort if there are no allocators to benchmark

---
 bench.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bench.py b/bench.py
index 5144459..02e95c7 100755
--- a/bench.py
+++ b/bench.py
@@ -121,6 +121,10 @@ def main():
     print_info("Allocators:", *src.globalvars.allocators.keys())
     print_debug("Allocators:", *src.globalvars.allocators.items())
 
+    if src.globalvars.allocators == {}:
+        print_error("Abort because there are no allocators to benchmark")
+        exit(1)
+
     # collect facts about benchmark environment
     src.facter.collect_facts()
 
-- 
GitLab