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

Side by Side Diff: third_party/xdg-utils/tests/xdg-su/t.01-su_basic_asroot

Issue 151098: Patch from mdm@google.com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Name: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/bash
2
3 ## Include utility functions.
4 . "$XDG_TEST_DIR/include/testassertions.sh"
5 . "$XDG_TEST_DIR/include/testcontrol.sh"
6
7 ## Test function
8 test_su_basic_asroot() {
9 test_start "$FUNCNAME: basic su already root"
10
11 test_init
12
13 require_root
14 assert_display
15
16 echo "root" >out.expected
17
18 test_procedure
19
20 assert_exit 0 xdg-su -c whoami
21 assert_stdout out.expected
22 assert_nostderr
23
24 assert_interactive "Were you prompted for the admin password?" n
25
26 test_result
27 }
28
29 run_test test_su_basic_asroot
OLDNEW
« no previous file with comments | « third_party/xdg-utils/tests/xdg-su/t.00-apply_generic ('k') | third_party/xdg-utils/tests/xdg-su/t.02-su_basic » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698