fixes #21261; always checking nimTestErrorFlag in the main module (#21288)

* fixes #21261; always checking nimTestErrorFlag in the main module

* add a test
This commit is contained in:
ringabout 2023-01-24 22:37:22 +08:00 • committed by GitHub
commit d54a7f078d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,9 @@
discard """
exitcode: 1
outputsub: '''
m21261.nim(1) m21261
Error: unhandled exception: something [Exception]
'''
"""
import m21261