[DTrace-devel] [PATCH v2 4/5] test: fix test/demo/user/libc.d
Kris Van Hees
kris.van.hees at oracle.com
Wed Sep 7 20:15:18 UTC 2022
It seems that /bin/date is more likely to exist than /usr/bin/date.
Also, the test needs a '@@trigger: none' marker to ensure it actually
gets executed.
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
test/demo/user/libc.d | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/demo/user/libc.d b/test/demo/user/libc.d
index dad274b8..cc1276af 100644
--- a/test/demo/user/libc.d
+++ b/test/demo/user/libc.d
@@ -5,9 +5,10 @@
* http://oss.oracle.com/licenses/upl.
*/
-/* @@runtest-opts: -c /usr/bin/date */
+/* @@runtest-opts: -c /bin/date */
+/* @@trigger: none */
-pid$target:libc.so::entry
+pid$target:libc.so:m*:entry
{
@[probefunc] = count();
}
--
2.34.1
More information about the DTrace-devel
mailing list