Skip to content

Commit 3b62d09

Browse files
committed
test(gcc): adjust -mtune=/-march= expectations for ppc
Closes #1201
1 parent 7ffeca5 commit 3b62d09

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

test/t/test_gcc.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,23 @@ def test_param_with_eq(self, completion, gcc_with_completion):
5252
assert completion in ("artition", "artition=")
5353

5454
@pytest.mark.complete("gcc -march=amd")
55-
def test_march(self, completion, gcc_with_completion, gcc_x86):
55+
def test_march_amd(self, completion, gcc_with_completion, gcc_x86):
5656
assert completion == "fam10"
5757

5858
@pytest.mark.complete("gcc -march=")
59-
def test_march_native(self, completion, gcc_with_completion):
60-
assert "native" in completion
59+
def test_march(self, completion, gcc_with_completion):
60+
# https://github.com/scop/bash-completion/issues/1201
61+
# native: x86, some others
62+
# power*: ppc
63+
assert "native" in completion or any(
64+
x.startswith("power") for x in completion
65+
)
6166

6267
@pytest.mark.complete("gcc -mtune=")
63-
def test_mtune_generic(self, completion, gcc_with_completion):
64-
assert "generic" in completion
68+
def test_mtune(self, completion, gcc_with_completion):
69+
# https://github.com/scop/bash-completion/issues/1201
70+
# generic: x86, some others
71+
# power*: ppc
72+
assert "generic" in completion or any(
73+
x.startswith("power") for x in completion
74+
)

0 commit comments

Comments
 (0)