diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-12-26 14:28:14 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-12-26 17:35:10 +0100 |
commit | 340fc792bba2ffdb4f930bc427a39ea3a1b659b2 (patch) | |
tree | ff779cda337d79975af460747d488c1ad96da635 /testsuite/python/units01/show_ports.py | |
parent | b9788c0bb2fabdcdd70029cd2ffbdd12706aea1d (diff) | |
download | ghdl-340fc792bba2ffdb4f930bc427a39ea3a1b659b2.tar.gz ghdl-340fc792bba2ffdb4f930bc427a39ea3a1b659b2.tar.bz2 ghdl-340fc792bba2ffdb4f930bc427a39ea3a1b659b2.zip |
testsuite/python: adjust tests for previous commit. For #1551
Diffstat (limited to 'testsuite/python/units01/show_ports.py')
-rw-r--r-- | testsuite/python/units01/show_ports.py | 3 |
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: |