[BACK]Return to t_modctl.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / modules

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/tests/modules/t_modctl.c between version 1.2.4.2 and 1.3

version 1.2.4.2, 2008/05/18 12:36:01 version 1.3, 2009/01/04 17:56:57
Line 316  ATF_TC_BODY(cmd_load, tc)
Line 316  ATF_TC_BODY(cmd_load, tc)
         ATF_CHECK(load(NULL, false, longname) == ENAMETOOLONG);          ATF_CHECK(load(NULL, false, longname) == ENAMETOOLONG);
   
         ATF_CHECK(!k_helper_is_present(stat_check));          ATF_CHECK(!k_helper_is_present(stat_check));
         load(NULL, true, "%s/k_helper.kmod", atf_tc_get_config_var(tc, "srcdir"));          load(NULL, true, "%s/k_helper/k_helper.kmod",
               atf_tc_get_config_var(tc, "srcdir"));
         printf("Checking if load was successful\n");          printf("Checking if load was successful\n");
         ATF_CHECK(k_helper_is_present(stat_check));          ATF_CHECK(k_helper_is_present(stat_check));
 }  }
Line 340  ATF_TC_BODY(cmd_load_props, tc)
Line 341  ATF_TC_BODY(cmd_load_props, tc)
   
         printf("Loading module without properties\n");          printf("Loading module without properties\n");
         props = prop_dictionary_create();          props = prop_dictionary_create();
         load(props, true, "%s/k_helper.kmod", atf_tc_get_config_var(tc, "srcdir"));          load(props, true, "%s/k_helper/k_helper.kmod",
               atf_tc_get_config_var(tc, "srcdir"));
         prop_object_release(props);          prop_object_release(props);
         {          {
                 int ok;                  int ok;
Line 354  ATF_TC_BODY(cmd_load_props, tc)
Line 356  ATF_TC_BODY(cmd_load_props, tc)
         props = prop_dictionary_create();          props = prop_dictionary_create();
         prop_dictionary_set(props, "prop_str",          prop_dictionary_set(props, "prop_str",
             prop_string_create_cstring("1st string"));              prop_string_create_cstring("1st string"));
         load(props, true, "%s/k_helper.kmod", atf_tc_get_config_var(tc, "srcdir"));          load(props, true, "%s/k_helper/k_helper.kmod",
               atf_tc_get_config_var(tc, "srcdir"));
         prop_object_release(props);          prop_object_release(props);
         {          {
                 int ok;                  int ok;
Line 373  ATF_TC_BODY(cmd_load_props, tc)
Line 376  ATF_TC_BODY(cmd_load_props, tc)
         props = prop_dictionary_create();          props = prop_dictionary_create();
         prop_dictionary_set(props, "prop_str",          prop_dictionary_set(props, "prop_str",
             prop_string_create_cstring("2nd string"));              prop_string_create_cstring("2nd string"));
         load(props, true, "%s/k_helper.kmod", atf_tc_get_config_var(tc, "srcdir"));          load(props, true, "%s/k_helper/k_helper.kmod",
               atf_tc_get_config_var(tc, "srcdir"));
         prop_object_release(props);          prop_object_release(props);
         {          {
                 int ok;                  int ok;
Line 405  ATF_TC_BODY(cmd_stat, tc)
Line 409  ATF_TC_BODY(cmd_stat, tc)
   
         ATF_CHECK(!k_helper_is_present(both_checks));          ATF_CHECK(!k_helper_is_present(both_checks));
   
         load(NULL, true, "%s/k_helper.kmod", atf_tc_get_config_var(tc, "srcdir"));          load(NULL, true, "%s/k_helper/k_helper.kmod",
               atf_tc_get_config_var(tc, "srcdir"));
         ATF_CHECK(k_helper_is_present(both_checks));          ATF_CHECK(k_helper_is_present(both_checks));
         {          {
                 modstat_t ms;                  modstat_t ms;
Line 434  ATF_TC_BODY(cmd_unload, tc)
Line 439  ATF_TC_BODY(cmd_unload, tc)
 {  {
         require_modular();          require_modular();
   
         load(NULL, true, "%s/k_helper.kmod", atf_tc_get_config_var(tc, "srcdir"));          load(NULL, true, "%s/k_helper/k_helper.kmod",
               atf_tc_get_config_var(tc, "srcdir"));
   
         ATF_CHECK(unload("", false) == ENOENT);          ATF_CHECK(unload("", false) == ENOENT);
         ATF_CHECK(unload("non-existent.kmod", false) == ENOENT);          ATF_CHECK(unload("non-existent.kmod", false) == ENOENT);

Legend:
Removed from v.1.2.4.2  
changed lines
  Added in v.1.3

CVSweb <webmaster@jp.NetBSD.org>