aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-30 11:52:12 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-30 11:52:12 -0800
commitab7dacbf6278ad1cbe1633231d1c04abaa80b702 (patch)
tree55eb3175d9383aff4dd909ca8380e4712174ada8
parent0320e9d82e44db8cf64b8049fa8b5fe1772f6061 (diff)
fix test_test_direct_string_constant_usage
-rwxr-xr-xtests/runner.py26
1 files changed, 14 insertions, 12 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 6bd8626d..ad411ee1 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -3618,19 +3618,21 @@ def process(filename):
self.do_run(src, re.sub('(^|\n)\s+', '\\1', expected), post_build=add_pre_run_and_checks)
def test_direct_string_constant_usage(self):
+ if self.emcc_args is None: return self.skip('requires libcxx')
+
src = '''
- #include <iostream>
- template<int i>
- void printText( const char (&text)[ i ] )
- {
- std::cout << text;
- }
- int main()
- {
- printText( "some string constant" );
- return 0;
- }
- '''
+ #include <iostream>
+ template<int i>
+ void printText( const char (&text)[ i ] )
+ {
+ std::cout << text;
+ }
+ int main()
+ {
+ printText( "some string constant" );
+ return 0;
+ }
+ '''
self.do_run(src, "some string constant")
def test_fs_base(self):