Index: third_party/xdg-utils/tests/xdg-su/t.05-su_no_cflag |
=================================================================== |
--- third_party/xdg-utils/tests/xdg-su/t.05-su_no_cflag (revision 0) |
+++ third_party/xdg-utils/tests/xdg-su/t.05-su_no_cflag (revision 0) |
@@ -0,0 +1,25 @@ |
+#!/bin/bash |
+ |
+## Include utility functions. |
+. "$XDG_TEST_DIR/include/testassertions.sh" |
+. "$XDG_TEST_DIR/include/testcontrol.sh" |
+ |
+## Test function |
+test_su_no_cflag() { |
+test_start "$FUNCNAME: expected error when no -c arg is present" |
+test_purpose "Verify bug 7136 has been corrected" |
+ |
+test_procedure |
+ |
+assert_interactive "Please close any open password prompt windows." |
+ |
+assert_exit 1 xdg-su whoami |
+assert_nostdout |
+assert_stderr |
+ |
+assert_interactive "Did a password prompt window appear?" n |
+ |
+test_result |
+} |
+ |
+run_test test_su_no_cflag |
Property changes on: third_party/xdg-utils/tests/xdg-su/t.05-su_no_cflag |
___________________________________________________________________ |
Name: svn:executable |
+ * |