mirror of
https://github.com/labwc/labwc.git
synced 2025-10-28 05:40:22 -04:00
scripts/check: run style check for test files
Co-authored-by: @johanmalm
This commit is contained in:
parent
d8260feef2
commit
261ec3c509
3 changed files with 8 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ run_checks () {
|
|||
return $?
|
||||
fi
|
||||
|
||||
find src/ include/ clients/ \( -name "*.c" -o -name "*.h" \) -type f -print0 |
|
||||
find src/ include/ clients/ t/ \( -name "*.c" -o -name "*.h" \) -type f -print0 |
|
||||
nice xargs -0 --max-args 1 --max-procs $(nproc) \
|
||||
scripts/checkpatch.pl --terse --no-tree --strict --file
|
||||
return $?
|
||||
|
|
|
|||
1
scripts/checkpatch.pl
vendored
1
scripts/checkpatch.pl
vendored
|
|
@ -5661,6 +5661,7 @@ sub process {
|
|||
$var !~ /^(?:GString|GError|GHashTable)/ &&
|
||||
$var !~ /^(?:__FreeBSD__)/ &&
|
||||
$var !~ /^(?:RsvgRectangle|RsvgHandle)/ &&
|
||||
$var !~ /^(?:CMUnitTest)/ &&
|
||||
$var !~ /^(?:XKB_KEY_XF86Switch_VT_1)/ &&
|
||||
|
||||
#Ignore SI style variants like nS, mV and dB
|
||||
|
|
|
|||
|
|
@ -68,7 +68,12 @@ test_buf_add_fmt(void **state)
|
|||
static void
|
||||
test_buf_add_char(void **state)
|
||||
{
|
||||
const char long_string[] = "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
|
||||
static const char long_string[] =
|
||||
"123456789012345678901234567890123456789012345678901234567890 "
|
||||
"123456789012345678901234567890123456789012345678901234567890 "
|
||||
"123456789012345678901234567890123456789012345678901234567890 "
|
||||
"123456789012345678901234567890123456789012345678901234567890 "
|
||||
"123456789012345678901234567890123456789012345678901234567890 ";
|
||||
size_t len = strlen(long_string);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue