aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-19 16:56:01 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-19 16:56:01 -0800
commitebd1b388651fd6aa240d3125486a710655e8277b (patch)
tree92db2f0e63ce8fa3085a3fd03982f4b475d243d7
parent13d9afee880f54463be7f5ad850ef45832931c59 (diff)
re-kill test_remove_duplicates
-rwxr-xr-xtests/runner.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 54b69724..7cb5f20a 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -8333,30 +8333,6 @@ f.close()
Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'foo', 'main.o'), os.path.join(self.get_dir(), 'bar', 'main.o')]).communicate()
self.assertContained('hello there', run_js(os.path.join(self.get_dir(), 'a.out.js')))
- def test_remove_duplicates(self):
- # can happen with .a files. we do a best-effort, removing dupes
- open(os.path.join(self.get_dir(), 'main.cpp'), 'w').write('''
- #include<stdio.h>
- void printey() { printf("bye bye\\n"); }
- int main() {
- printey();
- return 0;
- }
- ''')
- open(os.path.join(self.get_dir(), 'side.cpp'), 'w').write('''
- #include<stdio.h>
- void printey() { printf("bye bye\\n"); }
- ''')
-
- # without --remove-duplicates, we fail
- err = Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'main.cpp'), os.path.join(self.get_dir(), 'side.cpp')], stderr=PIPE).communicate()[1]
- assert not os.path.exists('a.out.js')
- assert 'multiply' in err
-
- # with it, we succeed
- err = Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'main.cpp'), os.path.join(self.get_dir(), 'side.cpp'), '--remove-duplicates'], stderr=PIPE).communicate()[1]
- self.assertContained('bye bye', run_js(os.path.join(self.get_dir(), 'a.out.js')))
-
def test_main_a(self):
# if main() is in a .a, we need to pull in that .a