aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorVasilis Kalintiris <ehostunreach@gmail.com>2013-12-07 14:40:25 +0200
committerVasilis Kalintiris <ehostunreach@gmail.com>2013-12-07 19:35:58 +0200
commitb718cf69a0b2e0a43f1144787110405ac4b42662 (patch)
treef951d4cb2ff905ac3f4c02bbbbf5db313f03c7ad /tests/test_core.py
parent325cc2eed8e79e5d0e3556548209f0716e555e1c (diff)
Use do_run_from_file() for test_memmove3
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index c8ae31a1..59a5261c 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -2570,17 +2570,10 @@ The current type of b is: 9
self.do_run_from_file(src, output)
def test_memmove3(self):
- src = '''
- #include <stdio.h>
- #include <string.h>
- int main() {
- char str[] = "memmove can be vvery useful....!";
- memmove(str+15, str+16, 17);
- puts(str);
- return 0;
- }
- '''
- self.do_run(src, 'memmove can be very useful....!')
+ test_path = path_from_root('tests', 'core', 'test_memmove3')
+ src, output = (test_path + s for s in ('.in', '.out'))
+
+ self.do_run_from_file(src, output)
def test_flexarray_struct(self):
src = r'''