File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
uefi-test-runner/src/proto Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ use uefi::proto::shell::Shell;
5
5
use uefi:: { CStr16 , boot} ;
6
6
use uefi_raw:: Status ;
7
7
8
- /// Test ``get_cur_dir ()`` and ``set_cur_dir ()``
9
- pub fn test_cur_dir ( shell : & ScopedProtocol < Shell > ) {
8
+ /// Test ``get_env ()`` and ``set_env ()``
9
+ pub fn test_env ( shell : & ScopedProtocol < Shell > ) {
10
10
let mut test_buf = [ 0u16 ; 128 ] ;
11
11
12
12
/* Test retrieving list of environment variable names (null input) */
@@ -51,6 +51,11 @@ pub fn test_cur_dir(shell: &ScopedProtocol<Shell>) {
51
51
let status = shell. set_env ( test_var, test_val, false ) ;
52
52
assert_eq ! ( status, Status :: SUCCESS ) ;
53
53
assert ! ( shell. get_env( Some ( test_var) ) . is_none( ) ) ;
54
+ }
55
+
56
+ /// Test ``get_cur_dir()`` and ``set_cur_dir()``
57
+ pub fn test_cur_dir ( shell : & ScopedProtocol < Shell > ) {
58
+ let mut test_buf = [ 0u16 ; 128 ] ;
54
59
55
60
/* Test setting and getting current file system and current directory */
56
61
let mut fs_buf = [ 0u16 ; 16 ] ;
@@ -152,6 +157,7 @@ pub fn test() {
152
157
let shell =
153
158
boot:: open_protocol_exclusive :: < Shell > ( handle) . expect ( "Failed to open Shell protocol" ) ;
154
159
160
+ test_env ( & shell) ;
155
161
test_cur_dir ( & shell) ;
156
162
157
163
// create some files
You can’t perform that action at this time.
0 commit comments