diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-11-26 13:10:39 -0500 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-12-03 12:56:46 +1000 |
commit | bd61a4e84891027dfabba6be62886f3baeb41e27 (patch) | |
tree | 0570d8f48526274bb3f3d252285ce138499e87ce /scripts/maint/checkspace_tests/expected.txt | |
parent | 2aaa7ae6e2559d4fa62efc57b1cf2660868d9323 (diff) | |
download | tor-bd61a4e84891027dfabba6be62886f3baeb41e27.tar.gz tor-bd61a4e84891027dfabba6be62886f3baeb41e27.zip |
Add a simple test for checkSpace.pl
This script is not expected to work on windows due to line-ending
issues, so I'm not making it get run on an automated basis. We
should use it when editing checkSpace.pl.
Closes ticket 32613.
Diffstat (limited to 'scripts/maint/checkspace_tests/expected.txt')
-rw-r--r-- | scripts/maint/checkspace_tests/expected.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/maint/checkspace_tests/expected.txt b/scripts/maint/checkspace_tests/expected.txt new file mode 100644 index 0000000000..935b750ef9 --- /dev/null +++ b/scripts/maint/checkspace_tests/expected.txt @@ -0,0 +1,31 @@ + fn() {:./dubious.c:4 + KW(:./dubious.c:6 + UnnecNL:./dubious.c:10 + DoubleNL:./dubious.c:12 + tp fn():./dubious.c:15 + Wide:./dubious.c:17 + TAB:./dubious.c:24 + nosplabel:./dubious.c:26 + CR:./dubious.c:30 + Space@EOL:./dubious.c:32 + non-K&R {:./dubious.c:39 + ;;:./dubious.c:41 + }\nelse:./dubious.c:43 + #else#if:./dubious.c:52 + o{:./dubious.c:58 + fn() {:./dubious.c:58 + fn ():./dubious.c:65 + assert:./dubious.c:72 (use tor_assert) + memcmp:./dubious.c:73 (use {tor,fast}_mem{eq,neq,cmp} + strcat(:./dubious.c:74 + strcpy(:./dubious.c:75 + sprintf(:./dubious.c:76 + malloc(:./dubious.c:77 (use tor_malloc, tor_free, etc) + free(:./dubious.c:78 (use tor_malloc, tor_free, etc) + realloc(:./dubious.c:79 (use tor_malloc, tor_free, etc) + strdup(:./dubious.c:80 (use tor_malloc, tor_free, etc) + strndup(:./dubious.c:81 (use tor_malloc, tor_free, etc) + calloc(:./dubious.c:82 (use tor_malloc, tor_free, etc) + noguard:./dubious.h (No #ifndef/#define header guard pair found) + dupguard:./same_guard.h (Guard macro GUARD_MACRO_H also used in ./good_guard.h) + dup fname:./subdir/dubious.c (same as ./dubious.c). |