aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-28 19:19:26 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-28 19:19:26 -0700
commitffd0f62f997d4ff774a62da65ad2fdbba4b0ab3e (patch)
tree0c48515066561c8b83bd73ba15743aa9d9138331 /tests/test_core.py
parent08c9642ea8db020ad90d75fa19e521214194fb51 (diff)
parent8b4db69024285124e7ca62ec10cd53478f6cfc24 (diff)
Merge pull request #1567 from rharkeadsk/fix-device-permissions
Fix permissions set by FS.createDevice
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 81d26595..17707c44 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -6977,8 +6977,11 @@ def process(filename):
src = open(filename, 'r').read().replace(
'// {{PRE_RUN_ADDITIONS}}',
\'\'\'
+ var dummy_device = FS.makedev(64, 0);
+ FS.registerDevice(dummy_device, {});
+
FS.createDataFile('/', 'file', 'abcdef', true, true);
- FS.createDevice('/', 'device', function() {}, function() {});
+ FS.mkdev('/device', 0666, dummy_device);
\'\'\'
)
open(filename, 'w').write(src)