Skip to content
Snippets Groups Projects
Commit da34b6ef authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests: Fix few test for proper "skipped" detection with qemu-arm's tinytest.

"Builtin" tinytest-based testsuite as employed by qemu-arm (and now
generalized by me to be reusable for other targets) performs simplified
detection of skipped tests, it treats as such tests which raised SystemExit
(instead of checking got "SKIP" output). Consequently, each "SKIP" must
be accompanied by SystemExit (and conversely, SystemExit should not be
used if test is not skipped, which so far seems to be true).
parent e4e3f0d7
No related branches found
No related tags found
No related merge requests found
...@@ -46,3 +46,4 @@ if have_compile(): ...@@ -46,3 +46,4 @@ if have_compile():
test() test()
else: else:
print("SKIP") print("SKIP")
raise SystemExit
...@@ -27,8 +27,8 @@ except AttributeError: ...@@ -27,8 +27,8 @@ except AttributeError:
r = m.Forward r = m.Forward
if 'Descriptor' in repr(r.__class__): if 'Descriptor' in repr(r.__class__):
print('SKIP') print('SKIP')
else: raise SystemExit
print(r) print(r)
m.Forward = 'a' m.Forward = 'a'
del m.Forward del m.Forward
...@@ -14,3 +14,4 @@ try: ...@@ -14,3 +14,4 @@ try:
print(A().Fun.__name__) print(A().Fun.__name__)
except AttributeError: except AttributeError:
print('SKIP') print('SKIP')
raise SystemExit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment