Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c245f16e in mainline


Ignore:
Timestamp:
2010-12-01T23:59:40Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
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.

Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

    r398c4d7 rc245f16e  
    111111        root \
    112112        rootvirt \
    113         test1
     113        test1 \
     114        test2
    114115
    115116RD_DRV_CFG =
  • 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.