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

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

Diff for /src/tests/kernel/t_rnd.c between version 1.4 and 1.5

version 1.4, 2010/12/06 16:37:25 version 1.5, 2012/03/18 09:46:50
Line 44  __RCSID("$NetBSD$");
Line 44  __RCSID("$NetBSD$");
 ATF_TC(RNDADDDATA);  ATF_TC(RNDADDDATA);
 ATF_TC_HEAD(RNDADDDATA, tc)  ATF_TC_HEAD(RNDADDDATA, tc)
 {  {
         atf_tc_set_md_var(tc, "descr", "checks ioctl(RNDADDDATA)");          atf_tc_set_md_var(tc, "descr",
               "Checks ioctl(RNDADDDATA) (PR kern/42020)");
 }  }
   
 /* Adapted from example provided by Juho Salminen in PR kern/42020 */  /* Adapted from example provided by Juho Salminen in the noted PR. */
 ATF_TC_BODY(RNDADDDATA, tc)  ATF_TC_BODY(RNDADDDATA, tc)
 {  {
         rnddata_t rd;          rnddata_t rd;
Line 57  ATF_TC_BODY(RNDADDDATA, tc)
Line 58  ATF_TC_BODY(RNDADDDATA, tc)
         fd = rump_sys_open("/dev/random", O_RDWR, 0);          fd = rump_sys_open("/dev/random", O_RDWR, 0);
         if (fd == -1)          if (fd == -1)
                 atf_tc_fail_errno("cannot open /dev/random");                  atf_tc_fail_errno("cannot open /dev/random");
   
         rd.entropy = 1;          rd.entropy = 1;
         rd.len = 1;          rd.len = 1;
         if (rump_sys_ioctl(fd, RNDADDDATA, &rd) == -1)          if (rump_sys_ioctl(fd, RNDADDDATA, &rd) == -1)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>