From 2084a7e85c9dcee376ebec52032af0bf28778f6c Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 31 Dec 2017 09:52:54 -0800 Subject: [PATCH] Don't crash if no unit test libs are found in the unit test runner. --- src/unit_tests/unit_test_main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unit_tests/unit_test_main.cc b/src/unit_tests/unit_test_main.cc index 1d0bc6b79..80d64c7b5 100644 --- a/src/unit_tests/unit_test_main.cc +++ b/src/unit_tests/unit_test_main.cc @@ -365,6 +365,10 @@ main_cont (int argc, char **argv) } + if (! tl::TestRegistrar::instance()) { + throw tl::Exception ("No test libraries found - make sure, the *.ut files are next to the ut_runner executable."); + } + // No side effects lay::set_klayout_path (std::vector ());