From 88028404e34331418d9c8af7089d469d8643593f Mon Sep 17 00:00:00 2001 From: wanghao Date: Tue, 29 Oct 2024 20:03:28 +0800 Subject: [PATCH] [Asan] printf-2.c test failed for Recv Garbled code Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/IARR6S Signed-off-by: wanghao --- .../test/sanitizer_common/ohos_family_commands/ohos_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py b/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py index 461fae43540f..3005922a5b86 100755 --- a/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py +++ b/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py @@ -47,7 +47,7 @@ def pull_from_device(path): tmp = tempfile.mktemp() hdc(['file', 'recv', path, tmp], attempts=5, check_stdout='FileTransfer finish') - text = open(tmp, 'r').read() + text = open(tmp, 'r', errors='ignore').read() os.unlink(tmp) return text -- Gitee