From: Frantisek Sumsal Date: Mon, 20 Nov 2023 16:41:20 +0000 (+0100) Subject: test: don't use ddebug() before it's defined X-Git-Tag: v255-rc3~31^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f258a76332dab5a97c398dea759d0fd8e7ee82a1;p=thirdparty%2Fsystemd.git test: don't use ddebug() before it's defined 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 --- diff --git a/test/test-functions b/test/test-functions index 92953075cf9..dfe4b8e24b5 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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