OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 # Tests fatal errors that occur after loading. | 6 # Tests fatal errors that occur after loading. |
7 # (See ppapi_browser/bad for fatal errors that occur during loading). | 7 # (See ppapi_browser/bad for fatal errors that occur during loading). |
8 # | 8 # |
9 # The tests use ppapi_test_lib. | 9 # The tests use ppapi_test_lib. |
10 | 10 |
11 Import('env') | 11 Import('env') |
12 | 12 |
13 env.Prepend(CPPDEFINES=['XP_UNIX']) | 13 env.Prepend(CPPDEFINES=['XP_UNIX']) |
14 | 14 |
15 crash_types = ['via_check_failure', 'via_exit_call', 'in_callback'] | 15 crash_types = ['via_check_failure', |
| 16 'via_exit_call', |
| 17 'in_callback', |
| 18 'off_main_thread', |
| 19 'ppapi_off_main_thread'] |
16 published_files = [] | 20 published_files = [] |
17 | 21 |
18 for crash_type in crash_types: | 22 for crash_type in crash_types: |
19 nexe = 'ppapi_crash_%s_%s' % (crash_type, env.get('TARGET_FULLARCH')) | 23 nexe = 'ppapi_crash_%s_%s' % (crash_type, env.get('TARGET_FULLARCH')) |
20 env.Alias('ppapi_crash_%s${PROGSUFFIX}' % crash_type, | 24 env.Alias('ppapi_crash_%s${PROGSUFFIX}' % crash_type, |
21 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 25 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
22 | 26 |
23 env.ComponentProgram( | 27 env.ComponentProgram( |
24 nexe, | 28 nexe, |
25 ['ppapi_crash_%s.cc' % crash_type], | 29 ['ppapi_crash_%s.cc' % crash_type], |
(...skipping 13 matching lines...) Expand all Loading... |
39 published_files.extend(env.ExtractPublishedFiles(nexe)) | 43 published_files.extend(env.ExtractPublishedFiles(nexe)) |
40 | 44 |
41 node = env.PPAPIBrowserTester('ppapi_crash_browser_test.out', | 45 node = env.PPAPIBrowserTester('ppapi_crash_browser_test.out', |
42 url='ppapi_crash.html', | 46 url='ppapi_crash.html', |
43 files=published_files) | 47 files=published_files) |
44 | 48 |
45 env.AddNodeToTestSuite(node, | 49 env.AddNodeToTestSuite(node, |
46 ['chrome_browser_tests'], | 50 ['chrome_browser_tests'], |
47 'run_ppapi_crash_browser_test', | 51 'run_ppapi_crash_browser_test', |
48 is_broken=env.PPAPIBrowserTesterIsBroken()) | 52 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |