Enable macro test for clang compiler
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.linespec / cpcompletion.exp
index 2b715fd9bcb5706bb0b344b74f0a163a874203fa..ebac3f90c2d595ea01948bfe7a23d6453e36edbe 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2017-2019 Free Software Foundation, Inc.
+# Copyright 2017-2021 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -836,12 +836,14 @@ proc_with_prefix function-labels {} {
 }
 
 # Test that completion after a function name offers keyword
-# (if/task/thread) matches in linespec mode, and also the explicit
-# location options in explicit locations mode.
+# (if/task/thread/-force-condition) matches in linespec mode, and also
+# the explicit location options in explicit locations mode.
 
 proc_with_prefix keywords-after-function {} {
     set explicit_list \
-       [concat $completion::explicit_opts_list $completion::keyword_list]
+       [lsort [concat \
+                   $completion::explicit_opts_list \
+                   $completion::keyword_list]]
 
     # Test without a source file, with a known source file, and with
     # and unknown source file.
@@ -865,7 +867,9 @@ proc_with_prefix keywords-after-function {} {
 
 proc_with_prefix keywords-after-label {} {
     set explicit_list \
-       [concat $completion::explicit_opts_list $completion::keyword_list]
+       [lsort [concat \
+                   $completion::explicit_opts_list \
+                   $completion::keyword_list]]
 
     foreach_location_labels \
        { "" "cpls.cc" } \
This page took 0.02621 seconds and 4 git commands to generate.