py = '3.10', mode = '-Csi', mode_meta = 'cpu', heap = ('-h', '64') @flaky(max_runs=3) @requires_sudo @pytest.mark.parametrize("heap", [tuple(), ("-h", "0"), ("-h", "64")]) @pytest.mark.parametrize( "mode,mode_meta", [("-i", "wall"), ("-si", "cpu"), ("-Ci", "wall"), ("-Csi", "cpu")] ) @allpythons() def test_attach_wall_time(py, mode, mode_meta, heap): with run_python(py, target("sleepy.py")) as p: sleep(0.5) result = austin(mode, "10ms", *heap, "-p", str(p.pid)) > assert result.returncode == 0 E assert 37 == 0 E + where 37 = CompletedProcess(args=['src/austin', '-Csi', '10ms', '-h', '64', '-p', '319'], returncode=37, stdout='', stderr="\x1b[1m _ _ \x1b[0m\n\x1b[1m __ _ _ _ __| |_(_)_ _ \x1b[0m\n\x1b[1m/ _` | || (_-< _| | ' \\ \x1b[0m\n\x1b[1m\\__,_|\\_,_/__/\\__|_|_||_|\x1b[0m \x1b[36;1m3.3.0\x1b[0m\n\n\U0001f512 Insufficient permissions. Austin requires the use of sudo on Linux in order\nto attach to a running Python process. Alternatively, you need to grant the\nAustin binary the CAP_SYS_PTRACE capability. See\n\n \U0001f310 https://github.com/P403n1x87/austin#compatibility\n\nfor more details.\n").returncode test/test_attach.py:61: AssertionError