aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/python/units01/show_ports.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/python/units01/show_ports.py')
-rw-r--r--testsuite/python/units01/show_ports.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/python/units01/show_ports.py b/testsuite/python/units01/show_ports.py
index 31c680817..a11f2acbd 100644
--- a/testsuite/python/units01/show_ports.py
+++ b/testsuite/python/units01/show_ports.py
@@ -101,7 +101,8 @@ if __name__ == "__main__":
# Initialization: set options and then load libaries
errorout_console.Install_Handler()
libghdl.set_option(b"--std=08")
- libghdl.analyze_init()
+ if libghdl.analyze_init_status() != 0:
+ raise Exception("libghdl initialization error")
# Recursively find and parse all the files with extension *.vhdl
if len(argv) > 1: