lib: use powers of two for object type enumerators
[babeltrace.git] / tests / cli / test_help
index b867618e3b125f49453aaeb51204f68a878ae537..2d620a3aa8e05b694af6ae335c3c0a51d71a6cd7 100755 (executable)
@@ -28,8 +28,8 @@ source "$UTILSSH"
 
 plan_tests 21
 
-stdout=$(mktemp test_help_stdout.XXXXXX)
-stderr=$(mktemp test_help_stderr.XXXXXX)
+stdout=$(mktemp -t test_help_stdout.XXXXXX)
+stderr=$(mktemp -t test_help_stderr.XXXXXX)
 
 # Return 0 if file "$1" exists and is empty, non-0 otherwise.
 
@@ -92,7 +92,7 @@ ok $? "help with unknown plugin name produces no output"
 bt_cli "${stdout}" "${stderr}" help src.ctf.bob
 isnt $? 0 "help with unknown component class name"
 
-grep --silent 'Cannot find component class: plugin-name="ctf", comp-cls-name="bob", comp-cls-type=0' "${stderr}"
+grep --silent 'Cannot find component class: plugin-name="ctf", comp-cls-name="bob", comp-cls-type=1' "${stderr}"
 ok $? "help with unknown component class name produces expected error"
 
 grep --silent 'Description: CTF input and output' "${stdout}"
@@ -107,3 +107,5 @@ ok $? "help with unknown component class plugin produces expected error"
 
 is_empty "${stdout}"
 ok $? "help with unknown component class plugin produces no output"
+
+rm -f "${stdout}" "${stderr}"
This page took 0.024546 seconds and 4 git commands to generate.