Skip to content
Snippets Groups Projects
Forked from Platform / Development / swh-model
Source project has a limited visibility.
  • vlorentz's avatar
    ad6a0302
    Fix tests of special devices. · ad6a0302
    vlorentz authored
    Regular files were created, as the 'mode' argument of os.mknod was missing.
    However, creating devices requires root; so we can't reasonably do that in
    tests.
    
    Instead, we're using /dev/null instead of creating one.
    And while we're at it, let's also use /dev/zero (which, if not handled
    properly, will result in an infinite read).
    ad6a0302
    History
    Fix tests of special devices.
    vlorentz authored
    Regular files were created, as the 'mode' argument of os.mknod was missing.
    However, creating devices requires root; so we can't reasonably do that in
    tests.
    
    Instead, we're using /dev/null instead of creating one.
    And while we're at it, let's also use /dev/zero (which, if not handled
    properly, will result in an infinite read).