diff options
Diffstat (limited to 'test/Win32/mingw.py')
-rw-r--r-- | test/Win32/mingw.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Win32/mingw.py b/test/Win32/mingw.py index 3385422..6b23314 100644 --- a/test/Win32/mingw.py +++ b/test/Win32/mingw.py @@ -63,7 +63,7 @@ env=Environment(tools=['mingw']) assert env['CC'] == 'gcc' env.StaticLibrary('static', 'static.cpp') env.SharedLibrary('shared', 'shared.cpp') -env.SharedLibrary('cshared', ['cshared.c', 'cshared.def']) +env.SharedLibrary('cshared', ['cshared.c', 'cshared.def'], WINDOWS_INSERT_DEF=1) env.Program('test', ['test.cpp', env.RES('resource.rc', CPPPATH=['header'])], LIBS=['static', 'shared', 'cshared'], LIBPATH=['.']) """) @@ -151,7 +151,8 @@ test.run(arguments='test.exe', stderr='.*') test.fail_test(test.stdout().find('cshared.def') == -1) test.fail_test(test.stdout().find('-Wl,--output-def,cshared.def') != -1) # ensure the target def got generated for the shared.dll: -test.fail_test(not os.path.exists(test.workpath('shared.def'))) +test.fail_test(not os.path.exists(test.workpath('cshared.def'))) +test.fail_test(os.path.exists(test.workpath('shared.def'))) test.run(program=test.workpath('test.exe'), stdout='test.cpp\nshared.cpp\nstatic.cpp\ncshared.c\n2001 resource.rc\n') # ensure that modifying the header causes the resource to be rebuilt: |