summaryrefslogtreecommitdiff
path: root/tests/long/70.twolf/test.py
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-02-27 10:37:48 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-02-27 10:37:48 +0000
commitdc8cc8de3da85199a2dbbb6e3ccf75337fdf2de2 (patch)
tree2894fa94f9b023037f54c7d8dda33241421803cf /tests/long/70.twolf/test.py
parenta86ad3a512205f05f84d7011f442fb5dc41210d7 (diff)
downloadgem5-dc8cc8de3da85199a2dbbb6e3ccf75337fdf2de2.tar.xz
Fix issue with twolf where the presence or absence of two files, smred.sav or smred.sv2, would affect the outcome of the program. These names are based on the input file names which are in turn based on the input set selected. There may be more files like this generated for larger input sets, for example "mdred.sv3"
--HG-- extra : convert_revision : f4f1d3fd0fb28468b0ee507aaadf3c14aa9cf924
Diffstat (limited to 'tests/long/70.twolf/test.py')
-rw-r--r--tests/long/70.twolf/test.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/long/70.twolf/test.py b/tests/long/70.twolf/test.py
index c105a17e2..310c0cfc3 100644
--- a/tests/long/70.twolf/test.py
+++ b/tests/long/70.twolf/test.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2006 The Regents of The University of Michigan
+# Copyright (c) 2006-2007 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -28,6 +28,14 @@
m5.AddToPath('../configs/common')
from cpu2000 import twolf
+import os
workload = twolf('alpha', 'tru64', 'smred')
root.system.cpu.workload = workload.makeLiveProcess()
+cwd = root.system.cpu.workload.cwd
+
+#Remove two files who's presence or absence affects execution
+sav_file = os.path.join(cwd, workload.input_set + '.sav')
+sv2_file = os.path.join(cwd, workload.input_set + '.sv2')
+os.unlink(sav_file)
+os.unlink(sv2_file)