Skip to content

Commit

Permalink
tests: Add test for 'profile count data file not found' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
siteshwar committed Oct 9, 2023
1 parent 0f73f85 commit c753de1
Show file tree
Hide file tree
Showing 7 changed files with 37,884 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/csdiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ test_csdiff(diff-misc 11-pylint-copr-json)
test_csdiff(diff-misc 12-shellcheck-sc222x)
test_csdiff(diff-misc 13-gcca-filt)
test_csdiff(diff-misc 14-gitleaks-paths)
test_csdiff(diff-misc 15-gcc-prof-filter)

add_subdirectory(filter-file)
1,678 changes: 1,678 additions & 0 deletions tests/csdiff/diff-misc/15-gcc-prof-filter-add-z.err

Large diffs are not rendered by default.

1,678 changes: 1,678 additions & 0 deletions tests/csdiff/diff-misc/15-gcc-prof-filter-add.err

Large diffs are not rendered by default.

79 changes: 79 additions & 0 deletions tests/csdiff/diff-misc/15-gcc-prof-filter-fix-z.err
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
Error: COMPILER_WARNING:
Python-3.12.0/Modules/_io/bufferedio.c: scope_hint: In function ‘_io_BufferedRandom___init__’
Python-3.12.0/Modules/_io/bufferedio.c:2692:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/bufferedio.gcda’ profile count data file not found
# 2690| Py_TPFLAGS_IMMUTABLETYPE),
# 2691| .slots = bufferedrandom_slots,
# 2692|-> };

Error: COMPILER_WARNING:
Python-3.12.0/Modules/_testcapi/exceptions.c: scope_hint: In function ‘_PyTestCapi_Init_Exceptions’
Python-3.12.0/Modules/_testcapi/exceptions.c:414:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/exceptions.gcda’ profile count data file not found
# 412|
# 413| return 0;
# 414|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Modules/_tkinter.c: scope_hint: In function ‘PyInit__tkinter’
Python-3.12.0/Modules/_tkinter.c:3361:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/_tkinter.gcda’ profile count data file not found
# 3359|
# 3360| return m;
# 3361|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Modules/cjkcodecs/multibytecodec.c: scope_hint: In function ‘PyInit__multibytecodec’
Python-3.12.0/Modules/cjkcodecs/multibytecodec.c:2084:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/multibytecodec.gcda’ profile count data file not found
# 2082| {
# 2083| return PyModuleDef_Init(&_multibytecodecmodule);
# 2084|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Objects/codeobject.c: scope_hint: In function ‘_Py_MakeShimCode’
Python-3.12.0/Objects/codeobject.c:2400:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/codeobject.gcda’ profile count data file not found
# 2398| Py_XDECREF(lines);
# 2399| return codeobj;
# 2400|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Objects/exceptions.c: scope_hint: In function ‘_PyException_AddNote’
Python-3.12.0/Objects/exceptions.c:3844:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/exceptions.gcda’ profile count data file not found
# 3842| Py_XDECREF(r);
# 3843| return res;
# 3844|-> }
# 3845|

Error: COMPILER_WARNING:
Python-3.12.0/Python/_warnings.c: scope_hint: In function ‘_PyWarnings_Fini’
Python-3.12.0/Python/_warnings.c:1481:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/_warnings.gcda’ profile count data file not found
# 1479| {
# 1480| warnings_clear_state(&interp->warnings);
# 1481|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Python/errors.c: scope_hint: In function ‘PyErr_ProgramTextObject’
Python-3.12.0/Python/errors.c:1951:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/errors.gcda’ profile count data file not found
# 1949| {
# 1950| return _PyErr_ProgramDecodedTextObject(filename, lineno, NULL);
# 1951|-> }
# 1952|
# 1953| #ifdef __cplusplus

Error: COMPILER_WARNING:
Python-3.12.0/Python/flowgraph.c: scope_hint: In function ‘_PyCfg_OptimizeCodeUnit’
Python-3.12.0/Python/flowgraph.c:2218:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/flowgraph.gcda’ profile count data file not found
# 2216| RETURN_IF_ERROR(resolve_line_numbers(g, firstlineno));
# 2217| return SUCCESS;
# 2218|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Python/hamt.c: scope_hint: In function ‘hamt_py_keys’
Python-3.12.0/Python/hamt.c:2894:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/hamt.gcda’ profile count data file not found
# 2892| .tp_free = PyObject_GC_Del,
# 2893| .tp_hash = PyObject_HashNotImplemented,
# 2894|-> };

Error: COMPILER_WARNING:
Python-3.12.0/Python/sysmodule.c: scope_hint: In function ‘PySys_FormatStderr’
Python-3.12.0/Python/sysmodule.c:3892:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/sysmodule.gcda’ profile count data file not found
# 3890| sys_format(&_Py_ID(stderr), stderr, format, va);
# 3891| va_end(va);
# 3892|-> }
79 changes: 79 additions & 0 deletions tests/csdiff/diff-misc/15-gcc-prof-filter-fix.err
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
Error: COMPILER_WARNING:
Python-3.12.0/Modules/_io/bufferedio.c: scope_hint: In function ‘_io_BufferedRandom___init__’
Python-3.12.0/Modules/_io/bufferedio.c:2692:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/bufferedio.gcda’ profile count data file not found
# 2690| Py_TPFLAGS_IMMUTABLETYPE),
# 2691| .slots = bufferedrandom_slots,
# 2692|-> };

Error: COMPILER_WARNING:
Python-3.12.0/Modules/_testcapi/exceptions.c: scope_hint: In function ‘_PyTestCapi_Init_Exceptions’
Python-3.12.0/Modules/_testcapi/exceptions.c:414:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/exceptions.gcda’ profile count data file not found
# 412|
# 413| return 0;
# 414|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Modules/_tkinter.c: scope_hint: In function ‘PyInit__tkinter’
Python-3.12.0/Modules/_tkinter.c:3361:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/_tkinter.gcda’ profile count data file not found
# 3359|
# 3360| return m;
# 3361|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Modules/cjkcodecs/multibytecodec.c: scope_hint: In function ‘PyInit__multibytecodec’
Python-3.12.0/Modules/cjkcodecs/multibytecodec.c:2084:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/multibytecodec.gcda’ profile count data file not found
# 2082| {
# 2083| return PyModuleDef_Init(&_multibytecodecmodule);
# 2084|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Objects/codeobject.c: scope_hint: In function ‘_Py_MakeShimCode’
Python-3.12.0/Objects/codeobject.c:2400:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/codeobject.gcda’ profile count data file not found
# 2398| Py_XDECREF(lines);
# 2399| return codeobj;
# 2400|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Objects/exceptions.c: scope_hint: In function ‘_PyException_AddNote’
Python-3.12.0/Objects/exceptions.c:3844:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/exceptions.gcda’ profile count data file not found
# 3842| Py_XDECREF(r);
# 3843| return res;
# 3844|-> }
# 3845|

Error: COMPILER_WARNING:
Python-3.12.0/Python/_warnings.c: scope_hint: In function ‘_PyWarnings_Fini’
Python-3.12.0/Python/_warnings.c:1481:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/_warnings.gcda’ profile count data file not found
# 1479| {
# 1480| warnings_clear_state(&interp->warnings);
# 1481|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Python/errors.c: scope_hint: In function ‘PyErr_ProgramTextObject’
Python-3.12.0/Python/errors.c:1951:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/errors.gcda’ profile count data file not found
# 1949| {
# 1950| return _PyErr_ProgramDecodedTextObject(filename, lineno, NULL);
# 1951|-> }
# 1952|
# 1953| #ifdef __cplusplus

Error: COMPILER_WARNING:
Python-3.12.0/Python/flowgraph.c: scope_hint: In function ‘_PyCfg_OptimizeCodeUnit’
Python-3.12.0/Python/flowgraph.c:2218:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/flowgraph.gcda’ profile count data file not found
# 2216| RETURN_IF_ERROR(resolve_line_numbers(g, firstlineno));
# 2217| return SUCCESS;
# 2218|-> }

Error: COMPILER_WARNING:
Python-3.12.0/Python/hamt.c: scope_hint: In function ‘hamt_py_keys’
Python-3.12.0/Python/hamt.c:2894:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/hamt.gcda’ profile count data file not found
# 2892| .tp_free = PyObject_GC_Del,
# 2893| .tp_hash = PyObject_HashNotImplemented,
# 2894|-> };

Error: COMPILER_WARNING:
Python-3.12.0/Python/sysmodule.c: scope_hint: In function ‘PySys_FormatStderr’
Python-3.12.0/Python/sysmodule.c:3892:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/Python-3.12.0/build/optimized/sysmodule.gcda’ profile count data file not found
# 3890| sys_format(&_Py_ID(stderr), stderr, format, va);
# 3891| va_end(va);
# 3892|-> }
Loading

0 comments on commit c753de1

Please sign in to comment.