Changeset c245f16e in mainline for uspace


Ignore:
Timestamp:
2010-12-01T23:59:40Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
18a6243
Parents:
398c4d7
Message:

Add another test for DDF

This test simulates hot-plug as child device is added outside the
add_device() function, after some time.

This test causes devman to dead-lock somewhere.

Location:
uspace
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r398c4d7 rc245f16e  
    8787        drv/root \
    8888        drv/rootvirt \
    89         drv/test1
     89        drv/test1 \
     90        drv/test2
    9091
    9192## Networking
  • uspace/drv/rootvirt/devices.def

    r398c4d7 rc245f16e  
    88        .match_id = "virtual&test1"
    99},
     10{
     11        .name = "test2alpha",
     12        .match_id = "virtual&test2"
     13},
     14{
     15        .name = "test2bravo",
     16        .match_id = "virtual&test2"
     17},
  • uspace/drv/test1/test1.c

    r398c4d7 rc245f16e  
    6666            match_id, match_score);
    6767
    68         if (rc != EOK) {
     68        if (rc == EOK) {
     69                printf(NAME ": registered child device `%s'.\n", name);
     70        } else {
    6971                printf(NAME ": failed to register child `%s' (%s).\n",
    7072                    name, str_error(rc));
Note: See TracChangeset for help on using the changeset viewer.