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

Comments

gh-109972: Enhance test_gdb#110026

Merged
vstinner merged 2 commits intopython:mainfrom
vstinner:enhance_test_gdb
Sep 28, 2023
Merged

gh-109972: Enhance test_gdb#110026
vstinner merged 2 commits intopython:mainfrom
vstinner:enhance_test_gdb

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedSep 28, 2023
edited by bedevere-appbot
Loading

  • Split PyBtTests.test_pycfunction() into 2 files, test_cfunction and test_cfunction_full, and 6 functions:

    • test_pycfunction_noargs()
    • test_pycfunction_o()
    • test_pycfunction_varargs()
    • test_pycfunction_varargs_keywords()
    • test_pycfunction_fastcall()
    • test_pycfunction_fastcall_keywords()
  • In verbose mode, these "pycfunction" tests now log each tested call.

  • Move get_gdb_repr() to PrettyPrintTests.

  • Replace DebuggerTests.get_sample_script() with SAMPLE_SCRIPT.

  • Rename checkout_hook_path to CHECKOUT_HOOK_PATH.

  • Rename gdb_version to GDB_VERSION_TEXT.

  • Replace (gdb_major_version, gdb_minor_version) with GDB_VERSION.

  • run_gdb() uses "backslashreplace" error handler.

  • Add check_gdb() function to util.py.

  • Enhance support.check_cflags_pgo(): check also for sysconfig PGO_PROF_USE_FLAG (if available) in compiler flags.

@vstinner
Copy link
MemberAuthor

@encukou: test_cfunction contains the following commented code:

            # XXX: bound methods don't yet give nice tracebacks            # '_testcapi.MethInstance()',

Should we try to reenable it, or remove the test?

* Split PyBtTests.test_pycfunction() into 2 files, test_cfunction and  test_cfunction_full, and 6 functions:  * test_pycfunction_noargs()  * test_pycfunction_o()  * test_pycfunction_varargs()  * test_pycfunction_varargs_keywords()  * test_pycfunction_fastcall()  * test_pycfunction_fastcall_keywords()* In verbose mode, these "pycfunction" tests now log each tested  call.* Move get_gdb_repr() to PrettyPrintTests.* Replace DebuggerTests.get_sample_script() with SAMPLE_SCRIPT.* Rename checkout_hook_path to CHECKOUT_HOOK_PATH.* Rename gdb_version to GDB_VERSION_TEXT.* Replace (gdb_major_version, gdb_minor_version) with GDB_VERSION.* run_gdb() uses "backslashreplace" error handler.* Add check_gdb() function to util.py.* Enhance support.check_cflags_pgo(): check also for sysconfig  PGO_PROF_USE_FLAG (if available) in compiler flags.* Move some SkipTest checks to test_gdb/__init__.py.* Elaborate why gdb cannot be tested on Windows: gdb doesn't support  PDB debug symbol files.
@vstinner
Copy link
MemberAuthor

macOS failed with:FAIL: test_interprocess_signal (test.test_signal.PosixTests.test_interprocess_signal)

I created issuegh-110033 for this test failure.

@vstinner
Copy link
MemberAuthor

Windows x86 failed with:ERROR: tearDownClass (test.test_multiprocessing_spawn.test_manager.WithManagerTestPool)

I created issuegh-110036 for this test failure.

@vstinnervstinnerenabled auto-merge (squash)September 28, 2023 16:39
@vstinnervstinner merged commit757cbd4 intopython:mainSep 28, 2023
@vstinnervstinner deleted the enhance_test_gdb branchSeptember 28, 2023 17:04
csm10495 pushed a commit to csm10495/cpython that referenced this pull requestSep 29, 2023
* Split test_pycfunction.py: add test_cfunction_full.py.  Split the function into the following 6 functions. In verbose  mode, these "pycfunction" tests now log each tested call.  * test_pycfunction_noargs()  * test_pycfunction_o()  * test_pycfunction_varargs()  * test_pycfunction_varargs_keywords()  * test_pycfunction_fastcall()  * test_pycfunction_fastcall_keywords()* Move get_gdb_repr() to PrettyPrintTests.* Replace DebuggerTests.get_sample_script() with SAMPLE_SCRIPT.* Rename checkout_hook_path to CHECKOUT_HOOK_PATH.* Rename gdb_version to GDB_VERSION_TEXT.* Replace (gdb_major_version, gdb_minor_version) with GDB_VERSION.* run_gdb() uses "backslashreplace" error handler instead of "replace".* Add check_gdb() function to util.py.* Enhance support.check_cflags_pgo(): check also for sysconfig  PGO_PROF_USE_FLAG (if available) in compiler flags.* Move some SkipTest checks to test_gdb/__init__.py.* Elaborate why gdb cannot be tested on Windows: gdb doesn't support  PDB debug symbol files.
@encukou
Copy link
Member

Well, try to reenable would be better?
I don't know much about gdb tests though, to be honest...

@vstinner
Copy link
MemberAuthor

@encukou:

Well, try to reenable would be better?
I don't know much about gdb tests though, to be honest...

Right now, I'm still trying to fix test_gdb existing tests :-(#110166

vstinner added a commit to vstinner/cpython that referenced this pull requestOct 4, 2023
* Split test_pycfunction.py: add test_cfunction_full.py.  Split the function into the following 6 functions. In verbose  mode, these "pycfunction" tests now log each tested call.  * test_pycfunction_noargs()  * test_pycfunction_o()  * test_pycfunction_varargs()  * test_pycfunction_varargs_keywords()  * test_pycfunction_fastcall()  * test_pycfunction_fastcall_keywords()* Move get_gdb_repr() to PrettyPrintTests.* Replace DebuggerTests.get_sample_script() with SAMPLE_SCRIPT.* Rename checkout_hook_path to CHECKOUT_HOOK_PATH.* Rename gdb_version to GDB_VERSION_TEXT.* Replace (gdb_major_version, gdb_minor_version) with GDB_VERSION.* run_gdb() uses "backslashreplace" error handler instead of "replace".* Add check_gdb() function to util.py.* Enhance support.check_cflags_pgo(): check also for sysconfig  PGO_PROF_USE_FLAG (if available) in compiler flags.* Move some SkipTest checks to test_gdb/__init__.py.* Elaborate why gdb cannot be tested on Windows: gdb doesn't support  PDB debug symbol files.(cherry picked from commit757cbd4)
@bedevere-app
Copy link

GH-110351 is a backport of this pull request to the3.12 branch.

vstinner added a commit that referenced this pull requestOct 4, 2023
*gh-109972: Enhance test_gdb (#110026)* Split test_pycfunction.py: add test_cfunction_full.py.  Split the function into the following 6 functions. In verbose  mode, these "pycfunction" tests now log each tested call.  * test_pycfunction_noargs()  * test_pycfunction_o()  * test_pycfunction_varargs()  * test_pycfunction_varargs_keywords()  * test_pycfunction_fastcall()  * test_pycfunction_fastcall_keywords()* Move get_gdb_repr() to PrettyPrintTests.* Replace DebuggerTests.get_sample_script() with SAMPLE_SCRIPT.* Rename checkout_hook_path to CHECKOUT_HOOK_PATH.* Rename gdb_version to GDB_VERSION_TEXT.* Replace (gdb_major_version, gdb_minor_version) with GDB_VERSION.* run_gdb() uses "backslashreplace" error handler instead of "replace".* Add check_gdb() function to util.py.* Enhance support.check_cflags_pgo(): check also for sysconfig  PGO_PROF_USE_FLAG (if available) in compiler flags.* Move some SkipTest checks to test_gdb/__init__.py.* Elaborate why gdb cannot be tested on Windows: gdb doesn't support  PDB debug symbol files.(cherry picked from commit757cbd4)*gh-104736: Fix test_gdb tests on ppc64le with clang (#109360)Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex:Fedora 38). Search patterns in gdb "bt" command output to detectwhen gdb fails to retrieve the traceback. For example, skip a test if"Backtrace stopped: frame did not save the PC" is found.(cherry picked from commit44d9a71)*gh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (#110331)CFunctionFullTests now also runs "bt" command before "py-bt-full",similar to CFunctionTests which also runs "bt" command before"py-bt". So test_gdb can skip the test if patterns like "?? ()" arefound in the gdb output.(cherry picked from commit1de9406)
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 4, 2023
…110351)*pythongh-109972: Enhance test_gdb (pythonGH-110026)* Split test_pycfunction.py: add test_cfunction_full.py.  Split the function into the following 6 functions. In verbose  mode, these "pycfunction" tests now log each tested call.  * test_pycfunction_noargs()  * test_pycfunction_o()  * test_pycfunction_varargs()  * test_pycfunction_varargs_keywords()  * test_pycfunction_fastcall()  * test_pycfunction_fastcall_keywords()* Move get_gdb_repr() to PrettyPrintTests.* Replace DebuggerTests.get_sample_script() with SAMPLE_SCRIPT.* Rename checkout_hook_path to CHECKOUT_HOOK_PATH.* Rename gdb_version to GDB_VERSION_TEXT.* Replace (gdb_major_version, gdb_minor_version) with GDB_VERSION.* run_gdb() uses "backslashreplace" error handler instead of "replace".* Add check_gdb() function to util.py.* Enhance support.check_cflags_pgo(): check also for sysconfig  PGO_PROF_USE_FLAG (if available) in compiler flags.* Move some SkipTest checks to test_gdb/__init__.py.* Elaborate why gdb cannot be tested on Windows: gdb doesn't support  PDB debug symbol files.(cherry picked from commit757cbd4)*pythongh-104736: Fix test_gdb tests on ppc64le with clang (pythonGH-109360)Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex:Fedora 38). Search patterns in gdb "bt" command output to detectwhen gdb fails to retrieve the traceback. For example, skip a test if"Backtrace stopped: frame did not save the PC" is found.(cherry picked from commit44d9a71)*pythongh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (pythonGH-110331)CFunctionFullTests now also runs "bt" command before "py-bt-full",similar to CFunctionTests which also runs "bt" command before"py-bt". So test_gdb can skip the test if patterns like "?? ()" arefound in the gdb output.(cherry picked from commitbbce8bd)Co-authored-by: Victor Stinner <vstinner@python.org>(cherry picked from commit1de9406)
vstinner added a commit that referenced this pull requestOct 4, 2023
…10354)[3.12]gh-109972: Enhance test_gdb (GH-110026) (GH-110351)*gh-109972: Enhance test_gdb (GH-110026)* Split test_pycfunction.py: add test_cfunction_full.py.  Split the function into the following 6 functions. In verbose  mode, these "pycfunction" tests now log each tested call.  * test_pycfunction_noargs()  * test_pycfunction_o()  * test_pycfunction_varargs()  * test_pycfunction_varargs_keywords()  * test_pycfunction_fastcall()  * test_pycfunction_fastcall_keywords()* Move get_gdb_repr() to PrettyPrintTests.* Replace DebuggerTests.get_sample_script() with SAMPLE_SCRIPT.* Rename checkout_hook_path to CHECKOUT_HOOK_PATH.* Rename gdb_version to GDB_VERSION_TEXT.* Replace (gdb_major_version, gdb_minor_version) with GDB_VERSION.* run_gdb() uses "backslashreplace" error handler instead of "replace".* Add check_gdb() function to util.py.* Enhance support.check_cflags_pgo(): check also for sysconfig  PGO_PROF_USE_FLAG (if available) in compiler flags.* Move some SkipTest checks to test_gdb/__init__.py.* Elaborate why gdb cannot be tested on Windows: gdb doesn't support  PDB debug symbol files.(cherry picked from commit757cbd4)*gh-104736: Fix test_gdb tests on ppc64le with clang (GH-109360)Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex:Fedora 38). Search patterns in gdb "bt" command output to detectwhen gdb fails to retrieve the traceback. For example, skip a test if"Backtrace stopped: frame did not save the PC" is found.(cherry picked from commit44d9a71)*gh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (GH-110331)CFunctionFullTests now also runs "bt" command before "py-bt-full",similar to CFunctionTests which also runs "bt" command before"py-bt". So test_gdb can skip the test if patterns like "?? ()" arefound in the gdb output.(cherry picked from commitbbce8bd)Co-authored-by: Victor Stinner <vstinner@python.org>(cherry picked from commit1de9406)Co-authored-by: Victor Stinner <vstinner@python.org>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
* Split test_pycfunction.py: add test_cfunction_full.py.  Split the function into the following 6 functions. In verbose  mode, these "pycfunction" tests now log each tested call.  * test_pycfunction_noargs()  * test_pycfunction_o()  * test_pycfunction_varargs()  * test_pycfunction_varargs_keywords()  * test_pycfunction_fastcall()  * test_pycfunction_fastcall_keywords()* Move get_gdb_repr() to PrettyPrintTests.* Replace DebuggerTests.get_sample_script() with SAMPLE_SCRIPT.* Rename checkout_hook_path to CHECKOUT_HOOK_PATH.* Rename gdb_version to GDB_VERSION_TEXT.* Replace (gdb_major_version, gdb_minor_version) with GDB_VERSION.* run_gdb() uses "backslashreplace" error handler instead of "replace".* Add check_gdb() function to util.py.* Enhance support.check_cflags_pgo(): check also for sysconfig  PGO_PROF_USE_FLAG (if available) in compiler flags.* Move some SkipTest checks to test_gdb/__init__.py.* Elaborate why gdb cannot be tested on Windows: gdb doesn't support  PDB debug symbol files.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@vstinner@encukou

[8]ページ先頭

©2009-2026 Movatter.jp