]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
scripts/dso-ordering-test.py: Fix C&P error in * callrefs processing
authorFlorian Weimer <fweimer@redhat.com>
Fri, 18 Mar 2022 17:18:35 +0000 (18:18 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 18 Mar 2022 17:18:45 +0000 (18:18 +0100)
The elf/dso-sort-tests-src subdirectory is not changed by this commit,
so it seems that the cut-and-paste error was not material.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
scripts/dso-ordering-test.py

index 0b526aff4563dfba3a402785f32e4e41c2522e9c..2dd6bfda183257a8a4c7bad4862f6d3171c1eaca 100644 (file)
@@ -551,17 +551,17 @@ def process_testcase(t):
         if obj in t.deps:
             deps = t.deps[obj]
             if '*' in deps:
-                t.deps[obj].remove('*')
+                deps.remove('*')
                 t.add_deps([obj], non_dep_tgt_objs)
         if obj in t.callrefs:
             deps = t.callrefs[obj]
             if '*' in deps:
-                t.deps[obj].remove('*')
+                deps.remove('*')
                 t.add_callrefs([obj], non_dep_tgt_objs)
     if "#" in t.deps:
         deps = t.deps["#"]
         if '*' in deps:
-            t.deps["#"].remove('*')
+            deps.remove('*')
             t.add_deps(["#"], non_dep_tgt_objs)
 
     # If no main program was specified in dependency description, make a