/*
 * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
 * Copyright © 2009 Cisco Systems, Inc.  All rights reserved.
 * See COPYING in top-level directory.
 */

#include <hwloc.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    mytest_hwloc_topology_t topology;
    unsigned depth;
    hwloc_cpuset_t cpu_set;

    /* Just call a bunch of functions to see if we can link and run */

    printf("*** Test 1: cpuset alloc\n");
    cpu_set = mytest_hwloc_cpuset_alloc();
    printf("*** Test 2: topology init\n");
    mytest_hwloc_topology_init(&topology);
    printf("*** Test 3: topology load\n");
    mytest_hwloc_topology_load(topology);
    printf("*** Test 4: topology get depth\n");
    depth = mytest_hwloc_topology_get_depth(topology);
    printf("    Max depth: %u\n", depth);
    printf("*** Test 5: topology destroy\n");
    mytest_hwloc_topology_destroy(topology);
    printf("*** Test 6: cpuset free\n");
    mytest_hwloc_cpuset_free(cpu_set);

    return 0;
}

/*
 * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
 * Copyright © 2009 Cisco Systems, Inc.  All rights reserved.
 * See COPYING in top-level directory.
 */

#include <hwloc.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    mytest_hwloc_topology_t topology;
    unsigned depth;
    hwloc_cpuset_t cpu_set;

    /* Just call a bunch of functions to see if we can link and run */

    cpu_set = mytest_hwloc_cpuset_alloc();
    mytest_hwloc_topology_init(&topology);
    mytest_hwloc_topology_load(topology);
    depth = mytest_hwloc_topology_get_depth(topology);
    printf("Max depth: %u\n", depth);
    mytest_hwloc_topology_destroy(topology);
    mytest_hwloc_cpuset_free(cpu_set);

    return 0;
}

--- 
+++ 
@@ -15,12 +15,18 @@
 
     /* Just call a bunch of functions to see if we can link and run */
 
+    printf("*** Test 1: cpuset alloc\n");
     cpu_set = mytest_hwloc_cpuset_alloc();
+    printf("*** Test 2: topology init\n");
     mytest_hwloc_topology_init(&topology);
+    printf("*** Test 3: topology load\n");
     mytest_hwloc_topology_load(topology);
+    printf("*** Test 4: topology get depth\n");
     depth = mytest_hwloc_topology_get_depth(topology);
-    printf("Max depth: %u\n", depth);
+    printf("    Max depth: %u\n", depth);
+    printf("*** Test 5: topology destroy\n");
     mytest_hwloc_topology_destroy(topology);
+    printf("*** Test 6: cpuset free\n");
     mytest_hwloc_cpuset_free(cpu_set);
 
     return 0;
Add some more print statements to this test, ju...

Add some more print statements to this test, just to help
differentiate the output when debugging is enabled

This commit was SVN r1752.
