2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

parser: set progname explicitly for tst_regex

Otherwise tst_regex would log as being from parser_common.c instead of
being from the actual source of parser_regex.c

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
(cherry picked from commit 6e643a1dab45aeb8b6204fd92574479b2b188e8a)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
Ryan Lee 2025-06-04 12:05:48 -04:00 committed by John Johansen
parent 20544e0f74
commit 9cc2931d1b

View File

@ -1449,6 +1449,9 @@ int main(void)
int rc = 0; int rc = 0;
int retval; int retval;
// Default is parser_common.c, but it should be this source file instead
progname = __FILE__;
retval = test_filter_slashes(); retval = test_filter_slashes();
if (retval != 0) if (retval != 0)
rc = retval; rc = retval;