File tree 3 files changed +8
-18
lines changed
actions/6-integration-test
runtime/druntime/test/shared/src
3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change 15
15
run : |
16
16
set -eux
17
17
cd ..
18
- if type -P apk &>/dev/null; then
19
- exit 0 # Alpine: no shared libs
20
- fi
21
18
if [[ '${{ runner.os }}' == Windows ]]; then
22
19
# add druntime/Phobos DLL dir to PATH
23
20
export PATH="$PWD/installed/bin:$PATH"
Original file line number Diff line number Diff line change 61
61
# TSan and XRay do not work.
62
62
extra_cmake_flags : >-
63
63
-DBUILD_LTO_LIBS=ON
64
- -DBUILD_SHARED_LIBS=OFF
65
64
-DLLVM_IS_SHARED=OFF
66
65
-DLDC_ENABLE_PLUGINS=OFF
67
66
-DLDC_DYNAMIC_COMPILE=OFF
Original file line number Diff line number Diff line change @@ -22,25 +22,19 @@ void runTest(string name)
22
22
* pLibSharedStaticDtorHook = &sharedStaticDtorHook;
23
23
24
24
const unloaded = Runtime .unloadLibrary(h);
25
- version (CRuntime_Musl )
25
+ assert (unloaded);
26
+ assert (tlsDtor == 1 );
27
+ version (LDC_darwin)
26
28
{
27
- // On Musl, unloadLibrary is a no-op because dlclose is a no-op
28
- assert (! unloaded);
29
- assert (tlsDtor == 0 );
29
+ // Since 10.13: https://github.com/ldc-developers/ldc/issues/3002
30
30
assert (dtor == 0 );
31
31
}
32
- else
32
+ else version ( CRuntime_Musl )
33
33
{
34
- assert (unloaded);
35
- assert (tlsDtor == 1 );
36
- version (LDC_darwin)
37
- {
38
- // Since 10.13: https://github.com/ldc-developers/ldc/issues/3002
39
- assert (dtor == 0 );
40
- }
41
- else
42
- assert (dtor == 1 );
34
+ assert (dtor == 0 );
43
35
}
36
+ else
37
+ assert (dtor == 1 );
44
38
}
45
39
46
40
void main (string [] args)
You can’t perform that action at this time.
0 commit comments