summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBeuc <beuc@beuc.net>2019-09-23 22:57:48 +0200
committerAlon Zakai <azakai@google.com>2019-09-23 13:57:48 -0700
commitf5f53bb222c0d634ea3dcf9d73f645b582ba41c3 (patch)
treeb196265dbb8719bd6ea4cae8dc043321fca13c7d /test
parente0bfb1c314a2c3c9ec1d345b7a9c80148901bc10 (diff)
downloadbinaryen-f5f53bb222c0d634ea3dcf9d73f645b582ba41c3.tar.gz
binaryen-f5f53bb222c0d634ea3dcf9d73f645b582ba41c3.tar.bz2
binaryen-f5f53bb222c0d634ea3dcf9d73f645b582ba41c3.zip
asyncify: support *-matching in whitelist and blacklist (#2344)
See emscripten-core/emscripten#9381 for rationale.
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_asyncify.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit/test_asyncify.py b/test/unit/test_asyncify.py
index e2fe82af9..9b7c403c0 100644
--- a/test/unit/test_asyncify.py
+++ b/test/unit/test_asyncify.py
@@ -36,7 +36,12 @@ class AsyncifyTest(BinaryenTestCase):
('--pass-arg=asyncify-whitelist@nonexistent', 'nonexistent'),
('--pass-arg=asyncify-blacklist@main', None),
('--pass-arg=asyncify-whitelist@main', None),
- ('--pass-arg=asyncify-whitelist@main', None),
+ ('--pass-arg=asyncify-blacklist@m*n', None),
+ ('--pass-arg=asyncify-whitelist@m*n', None),
+ ('--pass-arg=asyncify-whitelist@main*', None),
+ ('--pass-arg=asyncify-whitelist@*main', None),
+ ('--pass-arg=asyncify-blacklist@non*existent', 'non*existent'),
+ ('--pass-arg=asyncify-whitelist@non*existent', 'non*existent'),
('--pass-arg=asyncify-whitelist@DOS_ReadFile(unsigned short, unsigned char*, unsigned short*, bool)', None),
]:
print(arg, warning)