summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2013-01-12Use AM_CPPFLAGS instead of INCLUDESThierry Reding1-1/+1
Recent versions of automake deprecate the INCLUDES variable. The same effect can be achieved by using AM_CPPFLAGS instead, which is also automake's recommendation. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-03Strip trailing whitespaceAlan Coopersmith1-3/+3
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-18Add test case for XtCvtIntToPixmap fix in commit 16d9941f3aa38Alan Coopersmith3-1/+85
Expanded from original Sun test case for Solaris bug 4163152. Verified that with commit 16d9941f3aa38 reverted, this test case fails on amd64, with it present, this test case passes. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-18Add test case for XtAppMainLoop bug 34715Alan Coopersmith2-1/+92
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-18Add test framework similar to xserver and use it to test XtAsprintfAlan Coopersmith3-0/+129
Only two simple test cases to start with: - compares the results of snprintf of a short string to a static buffer with the new buffer returned by XtAsprintf. - compare the results of using XtAsprintf to replicate a portion of a very long string with the original string. Uses malloc debugging flags for various platforms to try to catch errors with uninitialized memory (such as the recently fixed failure to terminate the string). Requires xorg-macros 1.13 for XORG_ENABLE_UNIT_TESTS and XORG_WITH_GLIB. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>