From 95623d39d6029ba78ec96ad5ea08e9ac12629b91 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Mon, 3 Aug 2020 18:43:13 -0300 Subject: New upstream version 2.11 --- test/t/test_gcc.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'test/t/test_gcc.py') 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): -- cgit v1.2.1