]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: don't use ddebug() before it's defined
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 20 Nov 2023 16:41:20 +0000 (17:41 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 20 Nov 2023 20:26:17 +0000 (21:26 +0100)
I'm pretty sure this is not the only case, but it's the one I recently
noticed. Even though we call ddebug() from a function, that function is
called before ddebug() is defined, resulting in the same issue as if we
called just ddebug() in its place, i.e.:

..//test-functions: line 276: ddebug: command not found

test/test-functions

index 92953075cf91ced1088f5ed3d2d5d35710282666..dfe4b8e24b5d37170ca99dd0b1ba0e5cc2d4a32c 100644 (file)
@@ -273,7 +273,7 @@ is_built_with_asan() {
     local _bin="${1:?}"
 
     if ! type -P objdump >/dev/null; then
-        ddebug "Failed to find objdump. Assuming systemd hasn't been built with ASAN."
+        echo "Failed to find objdump, assuming systemd hasn't been built with ASAN."
         return 1
     fi