summaryrefslogtreecommitdiff
path: root/user/bash-completion/gcc-x86-tests.patch
blob: 49d7838b0308b047406627dd9991a0b97db6c97b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Now that we have a GCC that supports completions, we have a few test failures.

* -march=native is an x86-specific flag.  There is no -march on Power.

* -mtune=generic is x86 and Arm specific; Power's equivalent is powerpc.

Upstream-URL: https://github.com/scop/bash-completion/issues/1201

--- bash-completion-2.11/test/t/test_gcc.py.old	2020-07-25 06:49:49.000000000 -0500
+++ bash-completion-2.11/test/t/test_gcc.py	2024-05-26 21:16:26.236036406 -0500
@@ -56,9 +56,9 @@
         assert completion == "fam10"
 
     @pytest.mark.complete("gcc -march=")
-    def test_march_native(self, completion, gcc_with_completion):
+    def test_march_native(self, completion, gcc_with_completion, gcc_x86):
         assert "native" in completion
 
     @pytest.mark.complete("gcc -mtune=")
-    def test_mtune_generic(self, completion, gcc_with_completion):
+    def test_mtune_generic(self, completion, gcc_with_completion, gcc_x86):
         assert "generic" in completion