Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2008 The Native Client Authors. All rights reserved. | 2 # Copyright 2008 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 | 6 |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 # NOTE: the arm emulator does not handle atomic ops properly | 9 # NOTE: the arm emulator does not handle atomic ops properly |
| 10 # NOTE: the default setting of 10k rounds is too slow on ARM | 10 # NOTE: the default setting of 10k rounds is too slow on ARM |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 | 38 |
| 39 env.ComponentProgram('simple_thread_test.nexe', | 39 env.ComponentProgram('simple_thread_test.nexe', |
| 40 'simple_thread_test.c', | 40 'simple_thread_test.c', |
| 41 EXTRA_LIBS=['pthread'], | 41 EXTRA_LIBS=['pthread'], |
| 42 ) | 42 ) |
| 43 node = env.CommandSelLdrTestNacl( | 43 node = env.CommandSelLdrTestNacl( |
| 44 'simple_thread_test.out', | 44 'simple_thread_test.out', |
| 45 command=[env.File('simple_thread_test.nexe')], | 45 command=[env.File('simple_thread_test.nexe')], |
| 46 size='small', | 46 size='small', |
| 47 ) | 47 ) |
| 48 # This test is extremely (and unpredictably) slow under Memcheck on the Karmic | |
| 49 # buildbot because of what seems to be starvation on the critical section. | |
| 50 # The second thread manages to acquire the CS only after ~30 seconds of | |
| 51 # spinning. | |
| 52 # Somehow this can not be reproduced on desktop machines. | |
| 53 env.AddNodeToTestSuite(node, TEST_SUITES, 'run_simple_thread_test') | 48 env.AddNodeToTestSuite(node, TEST_SUITES, 'run_simple_thread_test') |
| 54 | 49 |
| 50 env.ComponentProgram('newlib_stdio_test.nexe', | |
| 51 'newlib_stdio_test.c', | |
| 52 EXTRA_LIBS=['pthread'], | |
| 53 ) | |
| 54 node = env.CommandSelLdrTestNacl( | |
| 55 'newlib_stdio_test.out', | |
| 56 command=[env.File('newlib_stdio_test.nexe')], | |
| 57 stdout_golden=env.File('newlib_stdio_test.stdout.golden'), | |
| 58 size='small', | |
| 59 ) | |
| 60 # This test currently fails because of a race in newlib between | |
| 61 # __newlib_thread_init and __sinit. | |
| 62 | |
| 63 # env.AddNodeToTestSuite(node, TEST_SUITES, 'run_newlib_stdio_test') | |
|
krasin
2010/09/07 11:25:50
This test is flaky. Sometimes it fails, sometimes
| |
| 64 | |
| 55 env.ComponentProgram('race_test.nexe', | 65 env.ComponentProgram('race_test.nexe', |
| 56 'race_test.c', | 66 'race_test.c', |
| 57 EXTRA_LIBS=['pthread'], | 67 EXTRA_LIBS=['pthread'], |
| 58 ) | 68 ) |
| 59 node = env.CommandSelLdrTestNacl( | 69 node = env.CommandSelLdrTestNacl( |
| 60 'race_test.out', | 70 'race_test.out', |
| 61 command=[env.File('race_test.nexe')], | 71 command=[env.File('race_test.nexe')], |
| 62 size='small', | 72 size='small', |
| 63 ) | 73 ) |
| 64 env.AddNodeToTestSuite(node, TEST_SUITES + ['tsan_bot_tests'], 'run_race_test') | 74 env.AddNodeToTestSuite(node, TEST_SUITES + ['tsan_bot_tests'], 'run_race_test') |
| 65 | 75 |
| 66 env.ComponentProgram('main_thread_pthread_exit_test.nexe', | 76 env.ComponentProgram('main_thread_pthread_exit_test.nexe', |
| 67 'main_thread_pthread_exit_test.c', | 77 'main_thread_pthread_exit_test.c', |
| 68 EXTRA_LIBS=['pthread'], | 78 EXTRA_LIBS=['pthread'], |
| 69 ) | 79 ) |
| 70 node = env.CommandSelLdrTestNacl( | 80 node = env.CommandSelLdrTestNacl( |
| 71 'main_thread_pthread_exit_test.out', | 81 'main_thread_pthread_exit_test.out', |
| 72 command=[env.File('main_thread_pthread_exit_test.nexe')], | 82 command=[env.File('main_thread_pthread_exit_test.nexe')], |
| 73 size='small', | 83 size='small', |
| 74 ) | 84 ) |
| 75 env.AddNodeToTestSuite(node, TEST_SUITES, 'run_main_thread_pthread_exit_test') | 85 env.AddNodeToTestSuite(node, TEST_SUITES, 'run_main_thread_pthread_exit_test') |
| OLD | NEW |