aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorRanger Harke <ranger.harke@autodesk.com>2013-08-28 15:24:54 -0400
committerRanger Harke <ranger.harke@autodesk.com>2013-08-28 16:11:13 -0400
commit8b4db69024285124e7ca62ec10cd53478f6cfc24 (patch)
tree764fdf45b7ece292f3efa9af13ed85a088e00b9a /tests/test_core.py
parent2ce6e7948422d85456aa494ecc7920ee545e258f (diff)
Update remaining tests to use registerDevice/mkdev
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 7c5b651f..2764c143 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)