From a73d7e7dee2971ee696430ac38b43de5811574fb Mon Sep 17 00:00:00 2001 From: Dexter Chua Date: Fri, 12 Feb 2021 19:00:27 +0800 Subject: [PATCH] TST Remove upstreamed memfsmtime emscripten test (#1241) The patch is upstreamed and so are tests. --- emsdk/tests/test_memfsmtime.py | 75 ---------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 emsdk/tests/test_memfsmtime.py diff --git a/emsdk/tests/test_memfsmtime.py b/emsdk/tests/test_memfsmtime.py deleted file mode 100644 index b29932297..000000000 --- a/emsdk/tests/test_memfsmtime.py +++ /dev/null @@ -1,75 +0,0 @@ -import subprocess -from . import common - - -def test_memfsmtime(tmpdir): - with tmpdir.as_cwd(): - with open("main.c", "w") as f: - f.write( - r"""\ -#include -#include -#include -#include -#include -#include -#include - -void mysleep(int delta) -{ - time_t end = time(NULL) + delta; - - while (time(NULL) t0); - assert(t1 == t2); - mysleep(1); - unlink(fname); - t3 = getmtime(tmpdir); - assert(t3 > t1); -} -""" - ) - - subprocess.run( - [ - "emcc", - "-s", - "MAIN_MODULE=1", - "main.c", - ], - check=True, - ) - out = subprocess.run(["node", "a.out.js"], capture_output=True, check=False) - assert out.returncode == 0