Please note that the CVS and issue trackers have moved to GitHub. These Trac pages are no longer kept up-to-date.

root/seattle/branches/nacl_repy/seattlelib/tests/ut_lind_fs_simple.py

Revision 5140, 462 bytes (checked in by justinc, 6 years ago)

removed circular imports and created a new Python testing mechanism called
lind_test_server. This removes the need for wrappers, etc.

Line 
1import lind_test_server
2
3from lind_fs_constants import *
4
5lind_test_server._blank_fs_init()
6
7# / should exist.
8lind_test_server.access_syscall('/',F_OK)
9
10# / should be read / executable by other
11lind_test_server.access_syscall('/',X_OK|R_OK)
12
13stat_result = lind_test_server.stat_syscall('/')
14
15# ensure there are 2 hard links to the root of an empty fs
16assert(stat_result[3] == 2)
17             
18
19# ensure there is no associated size
20assert(stat_result[7] == 0)
21
Note: See TracBrowser for help on using the browser.