diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-10-02 15:31:00 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-10-02 15:31:00 -0400 |
commit | cfaaa07a1976ecc30b683503113f0c2c89c11a40 (patch) | |
tree | 3e9d6d53fd6d4d86e2f740594033255911a2935c /cups | |
parent | eff8c82f6a43ee1816e3b5899381d525c3231d37 (diff) | |
download | cups-cfaaa07a1976ecc30b683503113f0c2c89c11a40.tar.gz |
Add threading unit test program (Issue #5642)
Diffstat (limited to 'cups')
-rw-r--r-- | cups/Dependencies | 7 | ||||
-rw-r--r-- | cups/Makefile | 12 |
2 files changed, 17 insertions, 2 deletions
diff --git a/cups/Dependencies b/cups/Dependencies index b30c76994..1cb291bd9 100644 --- a/cups/Dependencies +++ b/cups/Dependencies @@ -188,7 +188,7 @@ tls.o: tls.c cups-private.h string-private.h ../config.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ - debug-internal.h debug-private.h tls-darwin.c + debug-internal.h debug-private.h tls-darwin.c tls-darwin.h transcode.o: transcode.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ @@ -214,7 +214,7 @@ adminutil.o: adminutil.c cups-private.h string-private.h ../config.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h ppd.h cups.h raster.h adminutil.h backchannel.o: backchannel.c cups.h file.h versioning.h ipp.h http.h \ - array.h language.h pwg.h + array.h language.h pwg.h sidechannel.h backend.o: backend.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ @@ -401,6 +401,9 @@ testsnmp.o: testsnmp.c cups-private.h string-private.h ../config.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ snmp-private.h +testthreads.o: testthreads.c ../cups/cups.h file.h versioning.h ipp.h \ + http.h array.h language.h pwg.h ../cups/thread-private.h ../config.h \ + ../cups/versioning.h tlscheck.o: tlscheck.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ diff --git a/cups/Makefile b/cups/Makefile index 87d85babc..4e2aa6d37 100644 --- a/cups/Makefile +++ b/cups/Makefile @@ -106,6 +106,7 @@ TESTOBJS = \ testpwg.o \ testraster.o \ testsnmp.o \ + testthreads.o \ tlscheck.o OBJS = \ $(LIBOBJS) \ @@ -191,6 +192,7 @@ UNITTARGETS = \ testpwg \ testraster \ testsnmp \ + testthreads \ tlscheck TARGETS = \ @@ -701,6 +703,16 @@ testsnmp: testsnmp.o $(LIBCUPSSTATIC) # +# testthreads (dependency on static CUPS library is intentional) +# + +testthreads: testthreads.o $(LIBCUPSSTATIC) + echo Linking $@... + $(LD_CC) $(ALL_LDFLAGS) -o $@ testthreads.o $(LINKCUPSSTATIC) + $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ + + +# # tlscheck (dependency on static CUPS library is intentional) # |