Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e1f483

Browse files
committed
feat: add RR_ASAN and RR_TSAN when working with rr
1 parent20fd37b commit3e1f483

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎src/ffpuppet/core.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ def build_launch_cmd(
396396
"rr",
397397
"record",
398398
]
399+
ifgetenv("RR_ASAN")=="1":
400+
rr_cmd.append("--asan")
401+
ifgetenv("RR_TSAN")=="1":
402+
rr_cmd.append("--tsan")
399403
ifgetenv("RR_CHAOS")=="1":
400404
rr_cmd.append("--chaos")
401405
ifself._dbg==Debugger.PERNOSCO:

‎src/ffpuppet/test_ffpuppet.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ def test_ffpuppet_24(mocker, tmp_path):
661661
assert"--disable-cpuid-features-ext"incmd
662662
# RR
663663
ffp._dbg=Debugger.RR
664-
mocker.patch.dict(os.environ, {"RR_CHAOS":"1"})
664+
mocker.patch.dict(os.environ, {"RR_CHAOS":"1","RR_ASAN":"1","RR_TSAN":"1"})
665665
cmd=ffp.build_launch_cmd("bin_path")
666666
assertlen(cmd)>2
667667
assertcmd[0]=="rr"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp