diff --git a/mkfile b/mkfile index e20511281..6a923585b 100644 --- a/mkfile +++ b/mkfile @@ -69,7 +69,13 @@ builds/plan9/p9ftopt.h:D: include/freetype/config/ftoption.h clean:V: rm -f *.[$OS] src/*/*.[$OS] $CLEANFILES + cd tests && mk $target nuke:V: rm -f *.[$OS] src/*/*.[$OS] $CLEANFILES rm -f libfreetype.a[$OS] builds/plan9/p9ftopt.h + cd tests && mk $target + +test:V: runtest +runtest:V: $LIB + cd tests && mk $target diff --git a/tests/issue-1063/main.c b/tests/issue-1063/main.c index fd5404ebb..d4f51dfe3 100644 --- a/tests/issue-1063/main.c +++ b/tests/issue-1063/main.c @@ -1,8 +1,9 @@ -#include - #include #include +#ifndef _PLAN9 +#include +#endif int main( void ) @@ -42,6 +43,9 @@ main( void ) printf( "unknown %d for char %lu, gid %u\n", code, i, gid ); } +#ifdef _PLAN9 + exits(0); +#endif return 0; } diff --git a/tests/mkfile b/tests/mkfile new file mode 100644 index 000000000..0d5318032 --- /dev/null +++ b/tests/mkfile @@ -0,0 +1,49 @@ +# mkfile for Plan 9 from Bell Labs +# +# Copyright (C) 2026 by Yaroslav Kolomiiets. +# +# This file is part of the FreeType project, and may only be used, +# modified, and distributed under the terms of the FreeType project +# license, LICENSE.TXT. By continuing to use, modify, or distribute +# this file you indicate that you have read the license and understand +# and accept it fully. +# +' \ + -D'FT_CONFIG_STANDARD_LIBRARY_H=' \ + -D_PLAN9 \ + +