Looking at cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/docsExamples/ksyms.d I see two issues: 1. It requires /dev/ksyms, which means that ksyms(4) needs to be loaded for the test. 2. strings(1) is required, which isn't available on systems where MK_TOOLCHAIN == no.
I don't see docsExamples installed in /usr/tests/cddl/usr.sbin/dtrace/common. Is it intended? From the name it looks like a place to put examples, and the files under this directory don't look like complete test cases.
(In reply to Li-Wen Hsu from comment #1) Indeed, they're just toy examples and can't be used as test cases. See for instance the comment in ksyms.d: /* Must run "strings -a /dev/ksyms in another shell on the system */
I think this one can be closed as "works as intended"?
(In reply to Li-Wen Hsu from comment #3) Yeah, I think that's reasonable. "Not a bug" seems more accurate though, since there's no actual functionality here that "works as intended", or otherwise. :) docsExamples are not functional tests.