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

Side by Side Diff: third_party/xdg-utils/tests/debug/t.nodisplay

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 . "$XDG_TEST_DIR/include/testassertions.sh"
4 . "$XDG_TEST_DIR/include/testcontrol.sh"
5
6
7 test_nodisplay() {
8
9 test_start "$FUNCNAME: verify display is not set."
10
11 test_init
12
13 echo '#!/bin/bash' > showdisp.sh
14 echo '(echo "DISPLAY:($DISPLAY)")' >> showdisp.sh
15
16 chmod 755 showdisp.sh
17
18 echo "Display before: '$DISPLAY'"
19 set_no_display
20 echo "Display after: '$DISPLAY'"
21
22 test_procedure
23
24 echo "Display in procedure: '$DISPLAY'"
25
26 assert_exit 0 ./showdisp.sh
27 assert_stdout
28 assert_nostderr
29
30 cat out.stdout
31
32 test_result
33 }
34
35 run_test test_nodisplay
OLDNEW
« no previous file with comments | « third_party/xdg-utils/tests/debug/t.interactive ('k') | third_party/xdg-utils/tests/debug/t.var_bleed » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698