Skip to content

Test "component diamond" is failing on MacOS #80

@ckyang0225

Description

@ckyang0225

I installed cps-config on MacOS and ran ninja -C builddir test.
All tests passed however only component diamond generated reversed order result:

▶ 4/4 - component diamond           FAIL
4/4 pkg-config compatibility        FAIL            0.08s   19/20 subtests passed
>>> CPS_PATH=/Users/cyang571/src/cps-config/tests/cases ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=161 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /opt/homebrew/bin/python /Users/cyang571/src/cps-config/builddir/../tests/runner.py ./cps-config tests/cases.toml
――――――――――――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――――――――――――
stderr:
component diamond:
  returncode: 0
  stdout:   -I/opt/include -I/something
  expected: -I/something -I/opt/include
  stderr:
  command: ./cps-config diamond --cflags-only-I

I'm not sure if this problem only happen in MacOS, however the expected result -I/something -I/opt/include makes more sense for me, while it follows the "requires" order:

## Quoted from diamond.cps
needs-components1 -> multiple-components -> sample3 -> /something
needs-components2 -> multiple-components -> sample2 -> /opt/include

Does it make sense to find some way to guarantee the order of "requires"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions