summaryrefslogtreecommitdiffstats
path: root/test/option--debug.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-01-12 20:51:31 (GMT)
committerSteven Knight <knight@baldmt.com>2005-01-12 20:51:31 (GMT)
commit8221932fbb76c1c964db12fde7443a0510a4e7e5 (patch)
treecc4084606a3aa14592e3f8b48fcab9fd5e3df2c5 /test/option--debug.py
parent34130052fe144673646bdcdb035e64fd607ba934 (diff)
downloadSCons-8221932fbb76c1c964db12fde7443a0510a4e7e5.zip
SCons-8221932fbb76c1c964db12fde7443a0510a4e7e5.tar.gz
SCons-8221932fbb76c1c964db12fde7443a0510a4e7e5.tar.bz2
Improve --debug=count to get an idea of when different objects are created.
Diffstat (limited to 'test/option--debug.py')
-rw-r--r--test/option--debug.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/test/option--debug.py b/test/option--debug.py
index f0114e5..322afda 100644
--- a/test/option--debug.py
+++ b/test/option--debug.py
@@ -269,45 +269,6 @@ assert check(expected_command_time, command_time, 0.01)
assert check(total_time, sconscript_time+scons_time+command_time, 0.01)
assert check(total_time, expected_total_time, 0.1)
-try:
- import resource
-except ImportError:
- print "Python version has no `resource' module;"
- print "skipping test of --debug=memory."
-else:
- ############################
- # test --debug=memory
-
- test.run(arguments = "--debug=memory")
- lines = string.split(test.stdout(), '\n')
- test.fail_test(re.match(r'Memory before SConscript files: \d+', lines[-5]) is None)
- test.fail_test(re.match(r'Memory after SConscript files: \d+', lines[-4]) is None)
- test.fail_test(re.match(r'Memory before building: \d+', lines[-3]) is None)
- test.fail_test(re.match(r'Memory after building: \d+', lines[-2]) is None)
-
-try:
- import weakref
-except ImportError:
- print "Python version has no `weakref' module;"
- print "skipping tests of --debug=count and --debug=objects."
-else:
- ############################
- # test --debug=count
- # Just check that object counts for some representative classes
- # show up in the output.
- test.run(arguments = "--debug=count")
- stdout = test.stdout()
- test.fail_test(re.search('BuilderBase: \d+', stdout) is None)
- test.fail_test(re.search('FS: \d+', stdout) is None)
- test.fail_test(re.search('Node: \d+', stdout) is None)
- test.fail_test(re.search('SConsEnvironment: \d+', stdout) is None)
-
- ############################
- # test --debug=objects
- # Just check that it runs, we're not overly concerned about the actual
- # output at this point.
- test.run(arguments = "--debug=objects")
-
############################
# test --debug=presub