util/test: Do not use nested functions

Nested functions only work with gcc, not llvm. Define a static function
instead.

BUG=b:232122437
TEST=compile when FEATURES=test is set.

Change-Id: I93847ac953565aa83bec169feb32118ac27eb7a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/upstart/+/3647452
Reviewed-by: Allen Webb <allenwebb@google.com>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Fergus Dall <sidereal@google.com>
1 file changed