| [gw2] darwin -- Python 3.10.11 /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
|
|
|
| austin = <test.utils.Variant object at 0x101d925f0>, py = '3.13', mode = '-Csi'
|
| mode_meta = 'cpu', heap = ('-h', '64')
|
|
|
| @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()
|
| @variants
|
| def test_attach_wall_time(austin, py, mode, mode_meta, heap):
|
| with run_python(py, target("sleepy.py"), "2") as p:
|
| sleep(0.5)
|
|
|
| result = austin(mode, "2ms", *heap, "-p", str(p.pid))
|
| > assert result.returncode == 0
|
| E AssertionError: assert 1 == 0
|
| E + where 1 = CompletedProcess(args=['src/austin', '-Csi', '2ms', '-h', '64', '-p', '18046'], returncode=1, stdout='Usage: austin [-bcCfgmP?V] [-h n_mb] [-i n_us] [-o FILE] [-p PID] [-t n_ms]\n [-w PID] [-x n_sec] [--binary] [--cpu] [--children] [--full] [--gc]\n [--heap=n_mb] [--interval=n_us] [--memory] [--output=FILE]\n [--pid=PID] [--pipe] [--timeout=n_ms] [--where=PID]\n [--exposure=n_sec] [--help] [--usage] [--version] command [ARG...]\n\n', stderr='').returncode
|
|
|
| test/functional/test_attach.py:59: AssertionError
|