practracker: Capture stderr output in test_practracker.sh

And canonicalise file paths, so that output is consistent, even in
out-of-tree builds.

Capturing stderr output produces better diagnostics.

Diagnostics for 32705.
This commit is contained in:
teor
2019-12-12 16:15:29 +10:00
parent f9a243a9d4
commit cda2ff1965
4 changed files with 11 additions and 3 deletions
+1
View File
@@ -1,3 +1,4 @@
Unusual pattern permitted.h in scripts/maint/practracker/testdata
problem file-size a.c 41
problem include-count a.c 6
problem function-size a.c:i_am_a_function() 9
+1
View File
@@ -1,3 +1,4 @@
Unusual pattern permitted.h in scripts/maint/practracker/testdata
problem function-size a.c:i_am_a_function() 9
(warning) problem function-size a.c:another_function() 12
problem function-size b.c:foo() 4
@@ -1,2 +1,3 @@
Unusual pattern permitted.h in scripts/maint/practracker/testdata
problem file-size a.c 45 -> 41
problem file-size z.c 100 -> 0