From 5363fda9e7ebdc4dd191183ece2e6e070d68d716 Mon Sep 17 00:00:00 2001 From: Emanuele Rocca Date: Sat, 4 Oct 2008 22:13:00 +0200 Subject: Add tests/getcache_mem_corruption.py --- tests/getcache_mem_corruption.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/getcache_mem_corruption.py (limited to 'tests') diff --git a/tests/getcache_mem_corruption.py b/tests/getcache_mem_corruption.py new file mode 100644 index 00000000..e127f66e --- /dev/null +++ b/tests/getcache_mem_corruption.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +import apt_pkg +import re + +apt_pkg.InitConfig() +apt_pkg.InitSystem() +apt_cache = apt_pkg.GetCache() +# wrong +apt_depcache = apt_pkg.GetCache(apt_cache) +# correct: apt_depcache = apt_pkg.GetDepCache(apt_cache) +re.compile('a') -- cgit v1.2.3