4e33b15085b7cd23fe95256b9d2e9911751aa598 braney Sat Sep 26 12:12:04 2026 -0700 lib tests: htmlEncode and attributeEncode on NULL, and the tag strippers on labels with no tags, refs #38226, #37617 Runs under the careful allocator, whose marker straight after each block makes a missing terminator show up on every run. diff --git src/lib/tests/makefile src/lib/tests/makefile index 2174af282a7..6a1719a0fb8 100644 --- src/lib/tests/makefile +++ src/lib/tests/makefile @@ -1,47 +1,54 @@ kentSrc = ../.. include ../../inc/common.mk MYLIBDIR = ../../lib/${MACHTYPE} MYLIBS = ${MYLIBDIR}/jkweb.a BIN_DIR = bin/${MACHTYPE} pipelineTester = ${BIN_DIR}/pipelineTester test: errCatchTest htmlPageTest htmlExpandUrlTest htmlSanitizeTest pipelineTests dyStringTest \ mimeTests base64Tests quotedPTests safeTest hashTest fetchUrlTest gff3Test \ tabixTest vcfTest hacTreeTest mmHashTest testSumDoubles jsonQueryTest \ dnaCodonTest pathSimplifyTest faSpeedReadTest cgiParseTest cgiCookieTest \ - hmacTest netSlurpMaxTest + hmacTest netSlurpMaxTest htmlEncodeTest rm -r output fetchUrlTest testSumDoubles @echo tested all mkdirs: ${MKDIR} output ${BIN_DIR} testSumDoubles: testSumDoubles.o ${MYLIBS} @${MKDIR} $(dir $@) ${CC} ${COPT} -o ./testSumDoubles testSumDoubles.o ${MYLIBS} ${L} hmacTest: hmacTest.o ${MYLIBS} mkdirs @${MKDIR} $(dir $@) ${CC} ${COPT} -o ${BIN_DIR}/hmacTest hmacTest.o ${MYLIBS} ${L} ${STRIP} ${BIN_DIR}/hmacTest${EXE} ${BIN_DIR}/hmacTest > output/hmacTest diff expected/hmacTest output/hmacTest +htmlEncodeTest: htmlEncodeTest.o ${MYLIBS} mkdirs + @${MKDIR} $(dir $@) + ${CC} ${COPT} -o ${BIN_DIR}/htmlEncodeTest htmlEncodeTest.o ${MYLIBS} ${L} + ${STRIP} ${BIN_DIR}/htmlEncodeTest${EXE} + ${BIN_DIR}/htmlEncodeTest > output/htmlEncodeTest + diff expected/htmlEncodeTest output/htmlEncodeTest + netSlurpMaxTest: netSlurpMaxTest.o ${MYLIBS} mkdirs @${MKDIR} $(dir $@) ${CC} ${COPT} -o ${BIN_DIR}/netSlurpMaxTest netSlurpMaxTest.o ${MYLIBS} ${L} ${STRIP} ${BIN_DIR}/netSlurpMaxTest${EXE} ${BIN_DIR}/netSlurpMaxTest > output/netSlurpMaxTest diff expected/netSlurpMaxTest output/netSlurpMaxTest pathSimplifyTest: pathSimplifyTest.o ${MYLIBS} mkdirs @${MKDIR} $(dir $@) ${CC} ${COPT} -o ${BIN_DIR}/pathSimplifyTest pathSimplifyTest.o ${MYLIBS} ${L} ${STRIP} ${BIN_DIR}/pathSimplifyTest${EXE} ${BIN_DIR}/pathSimplifyTest > output/pathSimplifyTest diff expected/pathSimplifyTest output/pathSimplifyTest faSpeedReadTest: faSpeedReadTest.o ${MYLIBS} mkdirs