Cleanup: tests: name all temporary files to better identify leakage
[lttng-tools.git] / tests / regression / tools / trigger / test_remove_trigger_cli
index 9a04687612acf39de3c3602b054ab026d4882543..e42d0743cc40bc66dfee6b809f52d70082b6584a 100755 (executable)
@@ -27,9 +27,9 @@ plan_tests 17
 
 FULL_LTTNG_BIN="${TESTDIR}/../src/bin/lttng/${LTTNG_BIN}"
 
-tmp_stdout=$(mktemp -t test_list_triggers_cli_stdout.XXXXXX)
-tmp_stderr=$(mktemp -t test_list_triggers_cli_stderr.XXXXXX)
-tmp_expected_stdout=$(mktemp -t test_list_triggers_cli_expected_stdout.XXXXXX)
+tmp_stdout=$(mktemp --tmpdir -t test_list_triggers_cli_stdout.XXXXXX)
+tmp_stderr=$(mktemp --tmpdir -t test_list_triggers_cli_stderr.XXXXXX)
+tmp_expected_stdout=$(mktemp --tmpdir -t test_list_triggers_cli_expected_stdout.XXXXXX)
 
 uid=$(id --user)
 gid=$(id --group)
@@ -68,21 +68,21 @@ function remove_trigger ()
 start_lttng_sessiond_notap
 
 # Add a few triggers
-lttng_add_trigger_ok "ABC" --condition event-rule-matches aaa -u --filter 'p == 2' --action notify
-lttng_add_trigger_ok "DEF" --condition event-rule-matches -u -a --action notify
+lttng_add_trigger_ok "ABC" --condition event-rule-matches --name=aaa --domain=user --filter 'p == 2' --action notify
+lttng_add_trigger_ok "DEF" --condition event-rule-matches --domain=user --action notify
 
 cat > "${tmp_expected_stdout}" <<- EOF
 - name: ABC
-  user id: ${uid}
-  condition: event rule hit
+  owner uid: ${uid}
+  condition: event rule matches
     rule: aaa (type: tracepoint, domain: ust, filter: p == 2)
   actions:
     notify
       errors: none
   errors: none
 - name: DEF
-  user id: ${uid}
-  condition: event rule hit
+  owner uid: ${uid}
+  condition: event rule matches
     rule: * (type: tracepoint, domain: ust)
   actions:
     notify
@@ -95,8 +95,8 @@ remove_trigger "ABC"
 
 cat > "${tmp_expected_stdout}" <<- EOF
 - name: DEF
-  user id: ${uid}
-  condition: event rule hit
+  owner uid: ${uid}
+  condition: event rule matches
     rule: * (type: tracepoint, domain: ust)
   actions:
     notify
This page took 0.024454 seconds and 4 git commands to generate.