From 98054aaf2a21d3fab0fbaff4d347048d0d507413 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 29 Dec 2020 09:56:33 +0100 Subject: Activated 'analyze_init_status' in Python code. --- pyGHDL/dom/Misc.py | 6 +++--- testsuite/pyunit/libghdl/Initialize.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyGHDL/dom/Misc.py b/pyGHDL/dom/Misc.py index af8c6247a..35149b3a2 100644 --- a/pyGHDL/dom/Misc.py +++ b/pyGHDL/dom/Misc.py @@ -33,9 +33,9 @@ class Design(VHDLModel_Design): libghdl.set_option(b"--std=08") - # Finish initialization. This will load the standard package. -# if libghdl.analyze_init_status() != 0: -# raise LibGHDLException("Error initializing 'libghdl'.") + # Finish initialization. This will load the standard package. + if libghdl.analyze_init_status() != 0: + raise LibGHDLException("Error initializing 'libghdl'.") @export class Library(VHDLModel_Library): diff --git a/testsuite/pyunit/libghdl/Initialize.py b/testsuite/pyunit/libghdl/Initialize.py index 7ad00a995..0a46fe8b4 100644 --- a/testsuite/pyunit/libghdl/Initialize.py +++ b/testsuite/pyunit/libghdl/Initialize.py @@ -31,8 +31,8 @@ class Instantiate(TestCase): libghdl.set_option(b"--std=08") # Finish initialization. This will load the standard package. -# if libghdl.analyze_init_status() != 0: -# self.fail("libghdl initialization error") + if libghdl.analyze_init_status() != 0: + self.fail("libghdl initialization error") # Load the file file_id = name_table.Get_Identifier(str(self._filename).encode("utf_8")) -- cgit v1.2.3