[clazy] [Bug 431765] New: run_tests.py fail when clazy-standalone traverses a symbolic link
Francisco Boni
bugzilla_noreply at kde.org
Mon Jan 18 00:10:05 GMT 2021
https://bugs.kde.org/show_bug.cgi?id=431765
Bug ID: 431765
Summary: run_tests.py fail when clazy-standalone traverses a
symbolic link
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: boboniboni at gmail.com
CC: smartins at kde.org
Target Milestone: ---
Clazy-standalone outputs the complete *.cpp file path. Normalizing it so it
compares OK with the expected output by using os.getcwd() (run_tests.py:554)
doesn't work if the source root is traversed via symbolic link path
/insilications/apps/symbolic_link/tests $ ./run_tests.py --verbose
Qt version: 51500
Qt headers: /usr/include/qt5
clang -Xclang -load -Xclang ClazyPlugin.so -Xclang -add-plugin -Xclang clazy
-Wno-unused-value -Qunused-arguments -std=c++14 -isystem /usr/include/qt5 -fPIC
-L /usr/lib64 -c -Xclang -plugin-arg-clazy -Xclang post-event
post-event/main.cpp
Running: clazy-standalone function-args-by-ref/main.cpp
-export-fixes=function-args-by-ref/main.cpp.clazy-standalone.yaml
-checks=function-args-by-ref -- -Wno-unused-value -Qunused-arguments
-std=c++14 -isystem /usr/include/qt5 -fPIC -L /usr/lib64
output_file=function-args-by-ref/main.cpp.out
[FAIL] function-args-by-ref/main.cpp (standalone)
diff -Naur --strip-trailing-cr function-args-by-ref/main.cpp.expected
function-args-by-ref/main.cpp.result
--- function-args-by-ref/main.cpp.expected 2021-01-17 19:04:36.916670022
-0300
+++ function-args-by-ref/main.cpp.result 2021-01-17 20:01:05.948949841
-0300
@@ -1,18 +1,18 @@
-function-args-by-ref/main.cpp:245:10: warning: 'virtualMethod2' overrides a
member function but is not marked 'override' [-Winconsistent-missing-override]
-function-args-by-ref/main.cpp:28:10: warning: Missing reference on non-trivial
type (const struct NonTrivial) [-Wclazy-function-args-by-ref]
+/insilications/apps/symbolic_link/tests/function-args-by-ref/main.cpp:245:10:
warning: 'virtualMethod2' overrides a member function but is not marked
'override' [-Winconsistent-missing-override]
+/insilications/apps/symbolic_link/tests/function-args-by-ref/main.cpp:28:10:
warning: Missing reference on non-trivial type (const struct NonTrivial)
[-Wclazy-function-args-by-ref]
Their physical path:
/insilications/clazy/tests/function-args-by-ref/main.cpp.expected:
function-args-by-ref/main.cpp:245:10: warning: 'virtualMethod2' overrides a
member function but is not marked 'override' [-Winconsistent-missing-override]
function-args-by-ref/main.cpp:28:10: warning: Missing reference on non-trivial
type (const struct NonTrivial) [-Wclazy-function-args-by-ref]
/insilications/clazy/tests/function-args-by-ref/main.cpp.result:
/insilications/apps/symbolic_link/tests/function-args-by-ref/main.cpp:245:10:
warning: 'virtualMethod2' overrides a member function but is not marked
'override' [-Winconsistent-missing-override]
/insilications/apps/symbolic_link/tests/function-args-by-ref/main.cpp:28:10:
warning: Missing reference on non-trivial type (const struct NonTrivial)
[-Wclazy-function-args-by-ref]
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list