summaryrefslogtreecommitdiff
path: root/test/t/test_gcc.py
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
commit95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch)
treeea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /test/t/test_gcc.py
parent019f3cc463db63abc6460f97deb488deec43840b (diff)
downloadbash-completion-upstream/2.11.tar.gz
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'test/t/test_gcc.py')
-rw-r--r--test/t/test_gcc.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/t/test_gcc.py b/test/t/test_gcc.py
index 87f25797..50906db5 100644
--- a/test/t/test_gcc.py
+++ b/test/t/test_gcc.py
@@ -24,7 +24,7 @@ class TestGcc:
@pytest.mark.complete("gcc -fsanitize=add")
def test_enum_value(self, completion, gcc_with_completion):
- assert completion == "-fsanitize=address"
+ assert completion == "ress"
@pytest.mark.complete("gcc -fsanitize=")
def test_enum_value_with_eq(self, completion, gcc_with_completion):
@@ -48,15 +48,12 @@ class TestGcc:
@pytest.mark.complete("gcc --param=lto-max-p")
def test_param_with_eq(self, completion, gcc_with_completion):
- # starting with GCC 10.1 param end with =
- assert (
- completion == "--param=lto-max-partition"
- or completion == "--param=lto-max-partition="
- )
+ # starting with GCC 10.1 param ends with =
+ assert completion in ("artition", "artition=")
@pytest.mark.complete("gcc -march=amd")
def test_march(self, completion, gcc_with_completion, gcc_x86):
- assert completion == "-march=amdfam10"
+ assert completion == "fam10"
@pytest.mark.complete("gcc -march=")
def test_march_native(self, completion, gcc_with_completion):