mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b2ace89d27
If the return value is an integer, treat it like an exit code. Otherwise, if it is None, treat it like 0. Otherwise treat it as an error. This behaviour is equivalent to that of sys.exit. Also fix our own sys.exit handling to match this, and add tests for everything. --HG-- extra : rebase_source : e36155d8fbe555e76effd182979cd6b1000a6ece
12 lines
171 B
Makefile
12 lines
171 B
Makefile
#T gmake skip
|
|
|
|
CMD = %pycmd asplode_return
|
|
PYCOMMANDPATH = $(TESTPATH) $(TESTPATH)/subdir
|
|
|
|
all:
|
|
$(CMD) 0
|
|
-$(CMD) 1
|
|
$(CMD) None
|
|
-$(CMD) not-an-integer
|
|
@echo TEST-PASS
|