aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-10 10:02:40 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-10 10:02:40 -0700
commite5afcd2290c4914ec0ba16d8b54168c535773a0c (patch)
tree3b43066cfadc5872d32bab05b4c041faeec87283 /tests
parentb900ac09a2da00442e70be78136b180e820480bf (diff)
disable getopt tests in s_x_x
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index bb787def..cbbbf345 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4271,6 +4271,8 @@ The current type of b is: 9
self.do_run(src, 'ok.');
def test_getopt(self):
+ if self.emcc_args is None: return self.skip('needs emcc for libc')
+
src = '''
#pragma clang diagnostic ignored "-Winvalid-pp-token"
#include <unistd.h>
@@ -4319,6 +4321,8 @@ The current type of b is: 9
self.do_run(src, 'flags=1; tfnd=1; optind=4\nname argument = foobar', args=['-t', '12', '-n', 'foobar'])
def test_getopt_long(self):
+ if self.emcc_args is None: return self.skip('needs emcc for libc')
+
src = '''
#pragma clang diagnostic ignored "-Winvalid-pp-token"
#pragma clang diagnostic ignored "-Wdeprecated-writable-strings"