Question

I've been following https://github.com/kripken/emscripten/wiki/Using-Emscripten-on-Windows along up to now. When I run the test suite in tests/runner.py, some tests fail with a python error.

subprocess.Popen is throwing error 2 on files that clearly either exist or should be getting created mid-script (the latter being, ie, files in the C:/tmp directory, which I have created and also made certain is not read-only).

I have no idea what's going wrong or how I can fix this.

Was it helpful?

Solution

I set an environment variable EM_SAVE_DIR=1 as recommended on the github page.... Though it was recommended for debugging purposes, the fact of the matter is that it caused the files to remain both in memory and in the correct location, such that the error now only gets thrown on executables that I mistakenly didn't have anywhere on my PATH (cmake, sh, and make).

Though at some point later today, if I get all these tests worked out for runner.py, I may need to ask about making it work on visual studio, which throws error 6 on not finding a correct file in the tmp directory, and seems to be ignoring EM_SAVE_DIR=1....

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top