summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGValue.h
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-09-16 01:53:04 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-09-16 01:53:04 +0000
commit1a9f4dd5a0e10cd0cc25480a1dfdbe7707045acf (patch)
tree3d174ea64f232f519308346349bf416b65be122c /clang/lib/CodeGen/CGValue.h
parentabf4a3e4c605b90bba8091457ebac400eac10706 (diff)
downloadbcm5719-llvm-1a9f4dd5a0e10cd0cc25480a1dfdbe7707045acf.tar.gz
bcm5719-llvm-1a9f4dd5a0e10cd0cc25480a1dfdbe7707045acf.zip
Provided a mechanism for the test class to cleanup after itself once it's done.
This will remove the confusion experienced when previous test runs left some files (both intermediate or by-product as a result of the test). lldbtest.TestBase defines a classmethod tearDownClass(cls) which invokes the platform-specific cleanup() function as defined by the plugin; after that, it invokes a subclass-specific function classCleanup(cls) if defined; and, finally, it restores the old working directory. An example of classCleanup(cls) is in settings/TestSettings.py: @classmethod def classCleanup(cls): system(["/bin/sh", "-c", "rm output.txt"]) where it deletes the by-product "output.txt" as a result of running a.out. llvm-svn: 114058
Diffstat (limited to 'clang/lib/CodeGen/CGValue.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud