diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-06-12 10:44:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-06-12 10:44:11 -0700 |
commit | 4bb5c641d3eedfc1d2e922cdd7eacee7cc03d317 (patch) | |
tree | 15977ab7a2ef072e804e330d00683d1b94225472 /tests | |
parent | feef3ca3c5bc76d2bad1a739966a2143876847cf (diff) |
handle duplicate files in file packager
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index c8e3de37..e847f727 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -6837,6 +6837,10 @@ f.close() Popen(['python', EMCC, os.path.join(self.get_dir(), 'main.cpp'), '--embed-file', 'somefile.txt']).communicate() self.assertContained('|hello from a file wi|', run_js(os.path.join(self.get_dir(), 'a.out.js'))) + # preload twice, should not err + Popen(['python', EMCC, os.path.join(self.get_dir(), 'main.cpp'), '--embed-file', 'somefile.txt', '--embed-file', 'somefile.txt']).communicate() + self.assertContained('|hello from a file wi|', run_js(os.path.join(self.get_dir(), 'a.out.js'))) + def test_multidynamic_link(self): # Linking the same dynamic library in will error, normally, since we statically link it, causing dupe symbols # A workaround is to use --ignore-dynamic-linking, see emcc --help for details |