Index: client/tests/memory_api/memory_api.py |
diff --git a/client/tests/memory_api/memory_api.py b/client/tests/memory_api/memory_api.py |
index 71ad5424ebf9ef64f35c3d315fe623296851bfaf..ac9cc3728b5b8f543e229756aff96f97a83ba81a 100644 |
--- a/client/tests/memory_api/memory_api.py |
+++ b/client/tests/memory_api/memory_api.py |
@@ -6,11 +6,14 @@ class memory_api(test.test): |
version = 1 |
def setup(self): |
- utils.system("gcc %s -o %s" % |
- (os.path.join(self.bindir, "memory_api.c"), |
+ os.mkdir(self.tmpdir) |
+ utils.system("%s %s -o %s" % |
+ (utils.get_cc(), |
+ os.path.join(self.bindir, "memory_api.c"), |
os.path.join(self.tmpdir, "memory_api"))) |
- utils.system("gcc %s -o %s" % |
- (os.path.join(self.bindir, "mremaps.c"), |
+ utils.system("%s %s -o %s" % |
+ (utils.get_cc(), |
+ os.path.join(self.bindir, "mremaps.c"), |
os.path.join(self.tmpdir, "mremaps"))) |