glib/tests
Simon McVittie 44c004c84e Normalize C source files to end with exactly one newline
Some editors automatically remove trailing blank lines, or
automatically add a trailing newline to avoid having a trailing
non-blank line that is not terminated by a newline. To avoid unrelated
whitespace changes when users of such editors contribute to GLib,
let's pre-emptively normalize all files.

Unlike more intrusive whitespace normalization like removing trailing
whitespace from each line, this seems unlikely to cause significant
issues with cherry-picking changes to stable branches.

Implemented by:

    find . -name '*.[ch]' -print0 | \
    xargs -0 perl -0777 -p -i -e 's/\n+\z//g; s/\z/\n/g'

Signed-off-by: Simon McVittie <smcv@collabora.com>
2020-06-10 09:48:02 +01:00
..
collate Add Collation tests. 2005-10-05 17:37:46 +00:00
gobject Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
refcount Merge branch 'tsan' into 'master' 2019-03-05 11:46:33 +00:00
assert-msg-test.c Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
assert-msg-test.gdb tests: Work around a gdb bug in assert-msg-test 2017-11-27 11:44:08 +00:00
asyncqueue-test.c Fix various deprecation warnings in code and tests 2019-05-30 10:38:45 +01:00
bit-test.c all: remove use of 'register' keyword 2014-06-28 13:07:52 -04:00
casefold.txt glib: Update Unicode Character Database to version 13.0.0 2020-03-18 14:50:36 +00:00
casemap.txt glib: Update Unicode Character Database to version 13.0.0 2020-03-18 14:50:36 +00:00
child-test.c all: Remove trailing newlines from g_message()/g_warning()/g_error()s 2018-04-27 16:46:19 +01:00
completion-test.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
cxx-test.cpp Rename cxx-test.C to cxx-test.cpp 2018-09-21 08:45:54 -04:00
datetime.c Revert "gdatetime: Enable compile time check of g_date_time_format() format" 2018-11-01 16:12:32 +00:00
dirname-test.c Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
env-test.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
file-test.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
gen-casefold-txt.py tests: Port gen-casefold-txt.pl and gen-casemap-txt.pl to Python 3. See #1332 2018-06-12 22:18:03 +02:00
gen-casemap-txt.py tests: Port gen-casefold-txt.pl and gen-casemap-txt.pl to Python 3. See #1332 2018-06-12 22:18:03 +02:00
gio-test.c Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
iochannel-test-infile Modified Files: glib/ChangeLog glib/glib.def glib/glib/giochannel.c 2001-07-20 20:14:37 +00:00
iochannel-test.c iochannel-test: Fix leaks in test 2013-11-10 22:45:04 +01:00
libmoduletestplugin_a.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
libmoduletestplugin_b.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
mainloop-test.c mainloop-test: Fix race conditions 2018-10-30 00:55:14 +01:00
mapping-test.c tests W32: ifdef a variable not used on Windows 2018-09-21 08:45:54 -04:00
memchunks.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
meson.build tests: Remove redundant old atomic test 2019-10-08 12:10:20 +01:00
module-test.c gmodule: write test for shared libraries 2019-09-06 19:03:31 +01:00
onceinit.c Remove a bunch of lingering g_thread_init() 2013-05-31 23:03:19 -04:00
qsort-test.c win32: misc warning fixes 2012-11-15 14:19:06 -05:00
relation-test.c Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
run-assert-msg-test.sh build: Fix shellcheck warnings in various old build and test scripts 2020-02-27 10:33:45 +00:00
run-collate-tests.sh build: Fix shellcheck warnings in various old build and test scripts 2020-02-27 10:33:45 +00:00
slice-color.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
slice-concurrent.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
slice-test.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
slice-threadinit.c Fix make check 2011-05-01 17:10:04 -04:00
sources.c tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:35 +02:00
spawn-test-win32-gui.c gspawn, tests: extend spawn_test, run it on win32 2018-12-26 23:45:47 +03:00
spawn-test.c gspawn, tests: extend spawn_test, run it on win32 2018-12-26 23:45:47 +03:00
testgdate.c Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
testgdateparser.c Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
testglib.c gmessages: Add g_warning_once() 2019-10-09 16:39:31 +02:00
thread-test.c thread-test: Fix leaks in tests 2013-11-10 22:44:12 +01:00
threadpool-test.c tests: Fix unused variable in the threadpool-test 2019-10-30 15:24:08 +00:00
timeloop-basic.c Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
timeloop.c Consistently save errno immediately after the operation setting it 2017-08-03 10:21:13 +01:00
type-test.c win32: don't assume the format specifier for the stdlib printf/scanf like functions 2019-08-10 21:56:33 +02:00
unicode-caseconv.c tests: Port gen-casefold-txt.pl and gen-casemap-txt.pl to Python 3. See #1332 2018-06-12 22:18:03 +02:00
unicode-collate.c build: Add missing "static" keyword where it should be used 2012-11-01 20:12:01 -04:00
unicode-encoding.c Tests: Mark printf wrappers with G_GNUC_PRINTF 2018-09-27 09:21:32 +01:00
unicode-normalize.c Update to reflect Unicode PR #29 (#348694, Nikolai Weibull) 2006-07-31 04:50:05 +00:00
utf8.txt More clean up for Unicode corrigendum #9 2013-03-18 23:28:27 -04:00