Skip to content

Fixed conformance_arena_constraints test failure with no NUMA hardware.#2042

Open
petterreinholdtsen wants to merge 1 commit intouxlfoundation:masterfrom
petterreinholdtsen:test-numa-no-support
Open

Fixed conformance_arena_constraints test failure with no NUMA hardware.#2042
petterreinholdtsen wants to merge 1 commit intouxlfoundation:masterfrom
petterreinholdtsen:test-numa-no-support

Conversation

@petterreinholdtsen
Copy link
Copy Markdown
Contributor

Description

On a system without NUMA support, like GNU Hurd, the test would fail like this:

[doctest] doctest version is "2.4.12"
[doctest] run with "--help" for options
=============================================================================== test/conformance/conformance_arena_constraints.cpp:44: TEST CASE:  Test NUMA topology traversal correctness

test/conformance/conformance_arena_constraints.cpp:54: FATAL ERROR: REQUIRE( pos != numa_nodes_info.end() ) is NOT correct!
  values: REQUIRE( {?} != {?} )
  logged: Wrong, extra or repeated NUMA node index detected.

=============================================================================== [doctest] test cases:  5 |  4 passed | 1 failed | 0 skipped [doctest] assertions: 27 | 26 passed | 1 failed |
[doctest] Status: FAILURE!

With the fix in place, the test succeed.

Fixes #2039

Type of change

Choose one or multiple, leave empty if none of the other choices apply

Add a respective label(s) to PR if you have permissions

  • bug fix - change that fixes an issue
  • new feature - change that adds functionality
  • tests - change in tests
  • infrastructure - change in infrastructure and CI
  • documentation - documentation update

Tests

  • added - required for new features and some bug fixes
  • not needed

Documentation

  • updated in # - add PR number
  • needs to be updated
  • not needed

Breaks backward compatibility

  • Yes
  • No
  • Unknown

On a system without NUMA support, like GNU Hurd, the test would fail like this:

[doctest] doctest version is "2.4.12"
[doctest] run with "--help" for options
===============================================================================
test/conformance/conformance_arena_constraints.cpp:44:
TEST CASE:  Test NUMA topology traversal correctness

test/conformance/conformance_arena_constraints.cpp:54: FATAL ERROR: REQUIRE( pos != numa_nodes_info.end() ) is NOT correct!
  values: REQUIRE( {?} != {?} )
  logged: Wrong, extra or repeated NUMA node index detected.

===============================================================================
[doctest] test cases:  5 |  4 passed | 1 failed | 0 skipped
[doctest] assertions: 27 | 26 passed | 1 failed |
[doctest] Status: FAILURE!

With the fix in place, the test succeed.

Fixes uxlfoundation#2039
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests conformance_arena_constraints fail on machine without NUMA

1 participant