Skip to content

Commit

Permalink
practracker: Test practracker exit status
Browse files Browse the repository at this point in the history
Part of 32705.
  • Loading branch information
teor2345 committed Jan 15, 2020
1 parent eb55d85 commit fa038e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/maint/practracker/test_practracker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ run_practracker() {
--max-h-include-count=0 \
--max-include-count=0 \
--terse \
"${DATA}/" "$@" || true
"${DATA}/" "$@" || echo "practracker exit status: $?"
}
compare() {
# we can't use cmp because we need to use -b for windows
Expand Down
1 change: 1 addition & 0 deletions scripts/maint/practracker/testdata/ex0-expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ problem function-size b.c:bar() 5
problem file-size header.h 8
problem include-count header.h 4
problem dependency-violation header.h 3
practracker exit status: 11
1 change: 1 addition & 0 deletions scripts/maint/practracker/testdata/ex1-expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,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
practracker exit status: 2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Unusual pattern permitted.h in scripts/maint/practracker/testdata
problem file-size a.c 45 -> 41
problem file-size z.c 100 -> 0
practracker exit status: 3

0 comments on commit fa038e5

Please sign in to comment.