]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Helpful to print the fullpath of unit test (#3103)
authorJorge Pereira <jpereira@users.noreply.github.com>
Tue, 5 Nov 2019 23:23:16 +0000 (20:23 -0300)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 5 Nov 2019 23:23:16 +0000 (17:23 -0600)
src/bin/unit_test_attribute.c

index 50bb5e302c8dbca7cde503511601c810eea2a3c9..56d012ea11b4dab9988958089c8438b68adfe765 100644 (file)
@@ -219,7 +219,7 @@ static void mismatch_print(command_ctx_t *cc, char const *command,
        char *g, *e;
        char *spaces;
 
-       ERROR("%s failed at line %d of %s", command, cc->lineno, cc->path);
+       ERROR("%s failed at line %d of %s/%s", command, cc->lineno, cc->path, cc->filename);
        ERROR("  got      : %.*s", (int) got_len, got);
        ERROR("  expected : %.*s", (int) expected_len, expected);