Add debug details for detection init/cleanup
[connman] / src / selftest.c
index b3e0c23..727181d 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  Connection Manager
  *
- *  Copyright (C) 2007-2008  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2009  Intel Corporation. All rights reserved.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -31,8 +31,12 @@ int __connman_selftest(void)
 
        connman_info("Start self testing");
 
-       err = 0;
+       connman_info("Testing resolver unit");
+       err = __connman_resolver_selftest();
+       if (err < 0)
+               goto done;
 
+done:
        connman_info("Finished self testing");
 
        return err;