diff --git a/parser/parser_main.c b/parser/parser_main.c index f3b17f531..7ab425ef9 100644 --- a/parser/parser_main.c +++ b/parser/parser_main.c @@ -996,7 +996,6 @@ int process_profile(int option, const char *profilename) char * cachename = NULL; char * cachetemp = NULL; const char *basename = NULL; - FILE *cmd; /* per-profile states */ force_complain = opt_force_complain; @@ -1044,12 +1043,6 @@ int process_profile(int option, const char *profilename) update_mru_tstamp(yyin); } - cmd = fopen("/proc/self/exe", "r"); - if (cmd) { - update_mru_tstamp(cmd); - fclose(cmd); - } - retval = yyparse(); if (retval != 0) goto out; diff --git a/parser/tst/caching.py b/parser/tst/caching.py index a613e9bdf..7e82cb629 100755 --- a/parser/tst/caching.py +++ b/parser/tst/caching.py @@ -328,8 +328,8 @@ class AAParserCachingTests(AAParserCachingCommon): cmd.extend(['-v', '-r', self.profile]) self.run_cmd_check(cmd, expected_string='Replacement succeeded for') - def test_parser_newer_skips_cache(self): - '''test cache is skipped if parser is newer''' + def test_parser_newer_uses_cache(self): + '''test cache is not skipped if parser is newer''' self._generate_cache_file() time.sleep(config.timeout) @@ -342,7 +342,7 @@ class AAParserCachingTests(AAParserCachingCommon): cmd = list(self.cmd_prefix) cmd[0] = new_parser cmd.extend(['-v', '-r', self.profile]) - self.run_cmd_check(cmd, expected_string='Replacement succeeded for') + self.run_cmd_check(cmd, expected_string='Cached reload succeeded for') def _purge_cache_test(self, location):