diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2013-11-02 12:41:02 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2013-11-02 12:41:02 (GMT) |
commit | 7b7cded8d2946209e2802b34564cc4ec6428884b (patch) | |
tree | d2aca13218fdfd22a9f934ff1f959265d8c71d7b /test/Libs | |
parent | e38f59cab5d40f09f15c5e65645aa2d8af165c66 (diff) | |
download | SCons-7b7cded8d2946209e2802b34564cc4ec6428884b.zip SCons-7b7cded8d2946209e2802b34564cc4ec6428884b.tar.gz SCons-7b7cded8d2946209e2802b34564cc4ec6428884b.tar.bz2 |
Fix tests for previous commit (bug 2903) on Windows.
Diffstat (limited to 'test/Libs')
-rw-r--r-- | test/Libs/SharedLibrary-update-deps.py | 2 | ||||
-rw-r--r-- | test/Libs/bug2903/SConstruct | 2 | ||||
-rw-r--r-- | test/Libs/bug2903/SConstruct-libs | 3 | ||||
-rw-r--r-- | test/Libs/bug2903/lib.c | 3 | ||||
-rw-r--r-- | test/Libs/bug2903/main.c | 3 |
5 files changed, 10 insertions, 3 deletions
diff --git a/test/Libs/SharedLibrary-update-deps.py b/test/Libs/SharedLibrary-update-deps.py index e8ec2ab..5394bc7 100644 --- a/test/Libs/SharedLibrary-update-deps.py +++ b/test/Libs/SharedLibrary-update-deps.py @@ -58,7 +58,7 @@ else: test.run(arguments=['libname=foo', extraflags]) test.must_not_contain_any_line(test.stdout(), ["is up to date"]) -test.run(arguments=['libname=foo', extraflags]) +test.run(arguments=['libname=foo', extraflags, '--debug=explain']) test.must_contain_all_lines(test.stdout(), ["is up to date"]) test.pass_test() diff --git a/test/Libs/bug2903/SConstruct b/test/Libs/bug2903/SConstruct index f7b66a8..12919ce 100644 --- a/test/Libs/bug2903/SConstruct +++ b/test/Libs/bug2903/SConstruct @@ -7,7 +7,7 @@ # that already.) env=Environment() libname=ARGUMENTS.get('libname', 'foo') -env['SHLINKCOM'] = env['SHLINKCOM'] + ' $EXTRA_SHLINKFLAGS' +env.Append(SHLINKFLAGS=' $EXTRA_SHLINKFLAGS') shlinkflags=ARGUMENTS.get('shlinkflags', '') env.SharedLibrary('myshared', ['main.c'], LIBS=[libname], LIBPATH='.', EXTRA_SHLINKFLAGS=shlinkflags) diff --git a/test/Libs/bug2903/SConstruct-libs b/test/Libs/bug2903/SConstruct-libs index 3f59f9c..f7cc35d 100644 --- a/test/Libs/bug2903/SConstruct-libs +++ b/test/Libs/bug2903/SConstruct-libs @@ -1,3 +1,4 @@ env=Environment() libfoo = env.SharedLibrary('foo', 'lib.c') -env.InstallAs('${SHLIBPREFIX}bar${SHLIBSUFFIX}', libfoo)
\ No newline at end of file +env.InstallAs('${SHLIBPREFIX}bar${SHLIBSUFFIX}', libfoo[0]) +env.InstallAs('${LIBPREFIX}bar${LIBSUFFIX}', libfoo[1]) diff --git a/test/Libs/bug2903/lib.c b/test/Libs/bug2903/lib.c index 048f715..65f4cd2 100644 --- a/test/Libs/bug2903/lib.c +++ b/test/Libs/bug2903/lib.c @@ -1 +1,4 @@ +#ifdef _WIN32 +__declspec(dllexport) +#endif int i; diff --git a/test/Libs/bug2903/main.c b/test/Libs/bug2903/main.c index 3fe7d49..a4b1ecc 100644 --- a/test/Libs/bug2903/main.c +++ b/test/Libs/bug2903/main.c @@ -1,3 +1,6 @@ +#ifdef _WIN32 +__declspec(dllexport) +#endif void func() { } |