1 parent 9d02bfd commit 83ce7feCopy full SHA for 83ce7fe
1 file changed
ext/XS-APItest/t/lexicalattributes.t
@@ -2,6 +2,7 @@ use v5.40;
2
3
use Test::More;
4
use XS::APItest;
5
+use Config ();
6
7
our %ATTRIBUTES_APPLIED;
8
@@ -53,4 +54,13 @@ BEGIN {
53
54
':red attribute applied to lexical hash' );
55
}
56
57
+# Attribute definitions survive thread cloning
58
+# (this is mostly a test of the underlying SVt_INTERNAL implementation)
59
+SKIP: {
60
+ last SKIP unless $Config::Config{usethreads};
61
+
62
+ require threads;
63
+ threads->create( sub { return 123 } )->join;
64
+}
65
66
done_testing;
0 commit comments