diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-22 01:15:47 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-22 01:15:47 +0000 |
commit | fb7f9bef3ceecd5a3efb9252410f6850320462b8 (patch) | |
tree | 95cefb13965daa20689cebec67e48352be1ccfbf /base/base_unittests.scons | |
parent | 0cbd643274f17abca0efaa82036ac8ccbc695be3 (diff) | |
download | chromium_src-fb7f9bef3ceecd5a3efb9252410f6850320462b8.zip chromium_src-fb7f9bef3ceecd5a3efb9252410f6850320462b8.tar.gz chromium_src-fb7f9bef3ceecd5a3efb9252410f6850320462b8.tar.bz2 |
Added linux process utilities and tests.
Review URL: http://codereview.chromium.org/7202
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3715 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_unittests.scons')
-rw-r--r-- | base/base_unittests.scons | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/base/base_unittests.scons b/base/base_unittests.scons index fbb7c0c..3fcd89c 100644 --- a/base/base_unittests.scons +++ b/base/base_unittests.scons @@ -59,6 +59,22 @@ if env['PLATFORM'] == 'win32': ], ) +if env['PLATFORM'] == 'posix': + # Explicity list the functions we want to export from the base_unittest + # executable in the following file. + exported_symbols_filename = \ + env.Dir('#').abspath + '/base_unittest_exported_symbols.version' + + env.Append( + LIBS = [ + 'event', + ], + LINKFLAGS = [ + '-Xlinker', + '--dynamic-list=' + exported_symbols_filename, + ], + ) + # These test files work on *all* platforms; tests that don't work # cross-platform live below. input_files = [ @@ -127,8 +143,6 @@ if env['PLATFORM'] in ('posix', 'darwin'): to_be_ported_files = [ 'clipboard_unittest.cc', 'idletimer_unittest.cc', - 'process_util_unittest.cc', - 'stats_table_unittest.cc', 'watchdog_unittest.cc', 'gfx/native_theme_unittest.cc', 'gfx/uniscribe_unittest.cc', @@ -137,6 +151,17 @@ if env['PLATFORM'] in ('posix', 'darwin'): for remove in to_be_ported_files: input_files.remove(remove) +if env['PLATFORM'] == 'darwin': + # Remove files that still need to be ported from the input_files list. + # TODO(port): delete files from this list as they get ported. + to_be_ported_files = [ + 'process_util_unittest.cc', + 'stats_table_unittest.cc', + ] + for remove in to_be_ported_files: + input_files.remove(remove) + + if env['PLATFORM'] == 'win32': # Windows-specific tests. input_files.extend([ |