Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: third_party/xdg-utils/tests/xdg-su/t.04-su_no_carg

Issue 151098: Patch from mdm@google.com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/xdg-utils/tests/xdg-su/t.04-su_no_carg
===================================================================
--- third_party/xdg-utils/tests/xdg-su/t.04-su_no_carg (revision 0)
+++ third_party/xdg-utils/tests/xdg-su/t.04-su_no_carg (revision 0)
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+## Include utility functions.
+. "$XDG_TEST_DIR/include/testassertions.sh"
+. "$XDG_TEST_DIR/include/testcontrol.sh"
+
+## Test function
+test_su_no_carg() {
+test_start "$FUNCNAME: expected error when -c has no option"
+
+test_procedure
+
+assert_interactive "Please close any open password prompt windows."
+
+assert_exit 1 xdg-su -c ''
+assert_nostdout
+assert_stderr
+
+assert_interactive "Did a password prompt window appear?" n
+
+test_result
+}
+
+run_test test_su_no_carg
Property changes on: third_party/xdg-utils/tests/xdg-su/t.04-su_no_carg
___________________________________________________________________
Name: svn:executable
+ *
« no previous file with comments | « third_party/xdg-utils/tests/xdg-su/t.03-su_badpass ('k') | third_party/xdg-utils/tests/xdg-su/t.05-su_no_cflag » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698