Skip to content

Commit 1047d09

Browse files
committed
✅ annotate non-reproducible tests nlohmann#2324
1 parent d9843fc commit 1047d09

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,4 +1629,6 @@ Note that during the `ctest` stage, several JSON test files are downloaded from
16291629

16301630
In case you have downloaded the library rather than checked out the code via Git, test `cmake_fetch_content_configure`. Please execute `ctest -LE git_required` to skip these tests. See [issue #2189](https://github.com/nlohmann/json/issues/2189) for more information.
16311631

1632+
Some tests make the test suite not reproducible. Please execute `ctest -LE not_reproducible` to skip these tests. See [issue #2324](https://github.com/nlohmann/json/issues/2324) for more information.
1633+
16321634
As Intel compilers use unsafe floating point optimization by default, the unit tests may fail. Use flag [`/fp:precise`](https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/floating-point-options/fp-model-fp.html) then.

test/cmake_add_subdirectory/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ add_test(NAME cmake_add_subdirectory_build
1010
)
1111
set_tests_properties(cmake_add_subdirectory_configure PROPERTIES
1212
FIXTURES_SETUP cmake_add_subdirectory
13+
LABELS not_reproducible
1314
)
1415
set_tests_properties(cmake_add_subdirectory_build PROPERTIES
1516
FIXTURES_REQUIRED cmake_add_subdirectory
17+
LABELS not_reproducible
1618
)

test/cmake_fetch_content/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ if (${CMAKE_VERSION} VERSION_GREATER "3.11.0")
1212
set_tests_properties(cmake_fetch_content_configure PROPERTIES
1313
FIXTURES_SETUP cmake_fetch_content
1414
LABELS git_required
15+
LABELS not_reproducible
1516
)
1617
set_tests_properties(cmake_fetch_content_build PROPERTIES
1718
FIXTURES_REQUIRED cmake_fetch_content
1819
LABELS git_required
20+
LABELS not_reproducible
1921
)
2022
endif()

test/cmake_import/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ add_test(NAME cmake_import_build
1111
)
1212
set_tests_properties(cmake_import_configure PROPERTIES
1313
FIXTURES_SETUP cmake_import
14+
LABELS not_reproducible
1415
)
1516
set_tests_properties(cmake_import_build PROPERTIES
1617
FIXTURES_REQUIRED cmake_import
18+
LABELS not_reproducible
1719
)

test/cmake_import_minver/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ add_test(NAME cmake_import_minver_build
1111
)
1212
set_tests_properties(cmake_import_minver_configure PROPERTIES
1313
FIXTURES_SETUP cmake_import_minver
14+
LABELS not_reproducible
1415
)
1516
set_tests_properties(cmake_import_minver_build PROPERTIES
1617
FIXTURES_REQUIRED cmake_import_minver
18+
LABELS not_reproducible
1719
)

test/cmake_target_include_directories/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ add_test(NAME cmake_target_include_directories_build
1010
)
1111
set_tests_properties(cmake_target_include_directories_configure PROPERTIES
1212
FIXTURES_SETUP cmake_target_include_directories
13+
LABELS not_reproducible
1314
)
1415
set_tests_properties(cmake_target_include_directories_build PROPERTIES
1516
FIXTURES_REQUIRED cmake_target_include_directories
17+
LABELS not_reproducible
1618
)

0 commit comments

Comments
 (0)