about summary refs log tree commit diff stats
path: root/test/arch/x86/qemu/testqemu.py
diff options
context:
space:
mode:
authorPierre Lalet <pierre@droids-corp.org>2019-11-12 20:46:46 +0000
committerGitHub <noreply@github.com>2019-11-12 20:46:46 +0000
commitb265c8af0cee47c039bad11153d1eb9ba8383f71 (patch)
treea392717fba9902180ef02baf0691a6d060f4ae97 /test/arch/x86/qemu/testqemu.py
parent83e54bd2de945a36ab5ccd4cc5b94817d7cb0112 (diff)
parentc79fb842dd7b93d834952767d4abe7dd8b8a8061 (diff)
downloadmiasm-b265c8af0cee47c039bad11153d1eb9ba8383f71.tar.gz
miasm-b265c8af0cee47c039bad11153d1eb9ba8383f71.zip
Merge pull request #1088 from serpilliere/path_are_str
Path are str
Diffstat (limited to 'test/arch/x86/qemu/testqemu.py')
-rw-r--r--test/arch/x86/qemu/testqemu.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/arch/x86/qemu/testqemu.py b/test/arch/x86/qemu/testqemu.py
index 594a826b..64312928 100644
--- a/test/arch/x86/qemu/testqemu.py
+++ b/test/arch/x86/qemu/testqemu.py
@@ -48,7 +48,7 @@ def xxx___printf_chk(jitter):
     ret_ad, args = jitter.func_args_systemv(["out", "format"])
     if args.out != 1:
         raise RuntimeError("Not implemented")
-    fmt = jitter.get_str_ansi(args.format)
+    fmt = jitter.get_c_str(args.format)
     # Manage llx
     fmt = fmt.replace("llx", "lx")
     fmt = fmt.replace("%016lx", "%016z")
@@ -60,7 +60,7 @@ def xxx___printf_chk(jitter):
     for x in fmt_a:
         a = jitter.vm.get_u32(esp + 8 + 4*i)
         if x == "s":
-            a = jitter.get_str_ansi(a)
+            a = jitter.get_c_str(a)
         elif x in ("x", 'X', "d"):
             pass
         elif x.lower() in ("f", "l"):
@@ -102,7 +102,7 @@ def xxx_puts(jitter):
     writes the string s and a trailing newline to stdout.
     '''
     ret_addr, args = jitter.func_args_systemv(['target'])
-    output = jitter.get_str_ansi(args.target)
+    output = jitter.get_c_str(args.target)
     # Check with expected result
     line = next(expected)
     if output != line.rstrip():