File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
1
# testthat (development version)
2
2
3
+ * Fixed a warning in R >=4.2.0 on Windows that occurred when using the C++
4
+ testing infrastructure that testthat provides (#1672 ).
5
+
3
6
* You can now configure the behaviour of the implicit
4
7
` devtools::load_all() ` call performed by ` devtools::test() ` in your
5
8
package DESCRIPTION file (#1636 ). To disable exports of internal
Original file line number Diff line number Diff line change 12
12
* Force 'testthat' to be disabled by defining TESTTHAT_DISABLED.
13
13
* TESTTHAT_DISABLED takes precedence.
14
14
* 'testthat' is disabled on Solaris by default.
15
- *
16
- * Hide symbols containing static members on gcc, to work around issues
17
- * with DLL unload due to static members in inline functions.
18
- * https://github.com/r-lib/devtools/issues/1832
19
15
*/
20
16
#if defined(__GNUC__) || defined(__clang__)
21
17
# define TESTTHAT_ENABLED
22
- # define TESTTHAT_ATTRIBUTE_HIDDEN __attribute__ ((visibility(" hidden" )))
23
- #else
24
- # define TESTTHAT_ATTRIBUTE_HIDDEN
25
18
#endif
26
19
27
20
#if defined(__SUNPRO_C) || defined(__SUNPRO_CC) || defined(__sun) || defined(__SVR4)
32
25
# define TESTTHAT_DISABLED
33
26
#endif
34
27
28
+ /*
29
+ * Hide symbols containing static members on gcc, to work around issues
30
+ * with DLL unload due to static members in inline functions. This seems to only
31
+ * affect Linux. We never define this attribute on Windows, as MinGW has a known
32
+ * issue with this visibility attribute and ignores it with a warning.
33
+ * https://github.com/r-lib/devtools/issues/1832
34
+ * https://github.com/r-lib/testthat/issues/1672
35
+ */
36
+ #if (defined(__GNUC__) && !defined(__MINGW32__)) || defined(__clang__)
37
+ # define TESTTHAT_ATTRIBUTE_HIDDEN __attribute__ ((visibility(" hidden" )))
38
+ #else
39
+ # define TESTTHAT_ATTRIBUTE_HIDDEN
40
+ #endif
41
+
35
42
#ifndef TESTTHAT_DISABLED
36
43
37
44
# define CATCH_CONFIG_PREFIX_ALL
You can’t perform that action at this time.
0 commit comments