summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2024-03-02tests: fix -Werror=discarded-qualifiers errors in check_public.cAlan Coopersmith
check_public.c: In function ‘parse_display_pass’: check_public.c:32:32: error: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 32 | putenv("DISPLAY="); | ^~~~~~~~~~ In file included from check_public.c:4: /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is of type ‘const char *’ 148 | extern int putenv(char *); | ^~~~~~ check_public.c:57:16: error: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 57 | putenv("DISPLAY="); | ^~~~~~~~~~ /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is of type ‘const char *’ 148 | extern int putenv(char *); | ^~~~~~ check_public.c: In function ‘parse_display_fail’: check_public.c:73:32: error: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 73 | putenv("DISPLAY="); | ^~~~~~~~~~ /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is of type ‘const char *’ 148 | extern int putenv(char *); | ^~~~~~ check_public.c:99:16: error: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 99 | putenv("DISPLAY="); | ^~~~~~~~~~ /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is of type ‘const char *’ 148 | extern int putenv(char *); | ^~~~~~ check_public.c: In function ‘public_suite’: check_public.c:244:16: error: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 244 | putenv("DISPLAY="); | ^~~~~~~~~~ /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is of type ‘const char *’ 148 | extern int putenv(char *); | ^~~~~~ cc1: all warnings being treated as errors Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-25Add tests for unix socket parsingDemi Marie Obenour
Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
2020-11-18tests: don't use deprecated fail_unless check APIRan Benita
It causes errors like this when running make check: check_public.c:40:24: error: too many arguments for format [-Werror=format-extra-args] 40 | fail_unless(success, "unexpected parse failure %sfor '%s'", test_string[test_type], name); Closes: https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/49 Tested-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Ran Benita <ran@unusedvar.com>
2020-02-22tests: Support Check 0.13.0 APIA. Wilcox
[mattst88]: Keep compatibility with old API via preprocessor Fixes: #43
2013-08-15tests: Add files to .gitignoreDaniel Martin
Add check_all.log, check_all.trs and test-suite.log to tests/.gitignore. Signed-off-by: Daniel Martin <consume.noise@gmail.com>
2013-08-15Make xsltproc optionalDaniel Martin
Fix Bug 23863 - xcb still checks for xsltproc: https://bugs.freedesktop.org/show_bug.cgi?id=23863 xsltproc is used to generate the optional html page for `check` results, only. So, it's not a hard build dependency. Additionally, use yes/no instead of true/false in the HTML_CHECK_RESULT variable for consistent output after a configure run. Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
2013-07-03Update Makefile.am for newer automakeMarc Deslauriers
Debian Bug #710344 Reviewed-by: Daniel Martin <consume.noise@gmail.com>
2009-08-31Fix check dependencyJulien Cristau
Bugzilla #21992 make -j check fails because the check-local rule gets executed before the tests actually ran, so CheckLog*.xml doesn't exist. Signed-off-by: Julien Danjou <julien@danjou.info>
2006-11-26Fix unit tests for FreeBSDIan Osgood
putenv() string must contain '=' environment failure test is invalid if argument is NULL
2006-11-25Bug #9119: test xcb_popcountIan Osgood
2006-11-20Add new xcb_parse_display test cases, most related to IPv6 addressesJosh Triplett
2006-10-16Also test xcb_parse_display with NULL argument and display in $DISPLAYJosh Triplett
2006-09-25We no longer need xproto: do not list it as a dependency.Jamey Sharp
2006-09-25Lowercase library names to correspond with the new API.Jamey Sharp
2006-09-23Convert the XCB test suite to the new APIJosh Triplett
2006-03-08Unify autofoo .gitignore bits into one top-level file, and remove resulting ↵Jamey Sharp
redundancies.
2006-02-23Ignore test byproducts.Jamey Sharp
2006-02-18Add missing entries to .gitignore files.Eric Anholt
2006-02-18Move .cvsignore to .gitignore.Eric Anholt
2006-02-18Remove xcl and CVSROOT.Josh Triplett