OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 Import('env') | 6 Import('env') |
7 | 7 |
8 # We are testing a GNU C extension which is disallowed by "-pedantic" mode. | 8 # We are testing a GNU C extension which is disallowed by "-pedantic" mode. |
9 env.FilterOut(CCFLAGS=['-pedantic']) | 9 env.FilterOut(CCFLAGS=['-pedantic']) |
10 | 10 |
11 prog = env.ComponentProgram('computed_goto.nexe', 'computed_goto.c') | 11 prog = env.ComponentProgram('computed_goto', 'computed_goto.c') |
12 node = env.CommandSelLdrTestNacl('computed_goto_test.out', command=[prog]) | 12 node = env.CommandSelLdrTestNacl('computed_goto_test.out', prog) |
13 # TODO(mseaborn): Enable this for PNaCl when PNaCl is fixed to | 13 # TODO(mseaborn): Enable this for PNaCl when PNaCl is fixed to |
14 # generate correct code for this program. | 14 # generate correct code for this program. |
15 # See http://code.google.com/p/nativeclient/issues/detail?id=1423 | 15 # See http://code.google.com/p/nativeclient/issues/detail?id=1423 |
16 env.AddNodeToTestSuite(node, ['small_tests'], 'run_computed_goto_test', | 16 env.AddNodeToTestSuite(node, ['small_tests'], 'run_computed_goto_test', |
17 is_broken=env.Bit('bitcode')) | 17 is_broken=env.Bit('bitcode')) |
OLD | NEW |