[DTrace-devel] [PATCH 4/5] test: fix test/demo/user/libc.d
Kris Van Hees
kris.van.hees at oracle.com
Wed Sep 7 01:36:10 UTC 2022
Most distributions support /bin/date whereas some only support /bin/date.
Also, the test needs a '@@trigger: none' marker to ensure it actually
gets executed.
Mark the test as '@@skip' for now because probe* bvars are broken for pid
probes.
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
test/demo/user/libc.d | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/demo/user/libc.d b/test/demo/user/libc.d
index dad274b8..bf87014e 100644
--- a/test/demo/user/libc.d
+++ b/test/demo/user/libc.d
@@ -5,9 +5,11 @@
* http://oss.oracle.com/licenses/upl.
*/
-/* @@runtest-opts: -c /usr/bin/date */
+/* @@runtest-opts: -c /bin/date */
+/* @@trigger: none */
+/* @@skip: probefunc and other probe* bvars are broken for pid probes */
-pid$target:libc.so::entry
+pid$target:libc.so:m*:entry
{
@[probefunc] = count();
}
--
2.34.1
More information about the DTrace-devel
mailing list