[Libsysio-commit] strided-io: libsysio/tests test_driver.c test_rw.pl
Brought to you by:
lward
|
From: Sonja T. <so...@us...> - 2004-02-02 17:43:35
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29469 Modified Files: Tag: strided-io test_driver.c test_rw.pl Log Message: Fixed bug in test_driver Index: test_driver.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_driver.c,v retrieving revision 1.4.6.2 retrieving revision 1.4.6.3 diff -u -w -b -B -p -r1.4.6.2 -r1.4.6.3 --- test_driver.c 30 Jan 2004 19:55:33 -0000 1.4.6.2 +++ test_driver.c 2 Feb 2004 17:41:28 -0000 1.4.6.3 @@ -318,7 +318,7 @@ void store_result(char *var_name, int re } else new_map = &map[index]; - new_map->map.name = malloc(sizeof(var_name) + 1); + new_map->map.name = malloc(strlen(var_name) + 1); strcpy(new_map->map.name, var_name); new_map->map.obj = result; new_map->map.type = last_type; Index: test_rw.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/Attic/test_rw.pl,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -w -b -B -p -r1.1.2.2 -r1.1.2.3 --- test_rw.pl 2 Feb 2004 16:22:52 -0000 1.1.2.2 +++ test_rw.pl 2 Feb 2004 17:41:28 -0000 1.1.2.3 @@ -193,7 +193,7 @@ sub do_rwcalls # Set up the buffers again $iovcnt++; - $iovname = set_iovecs($cmdfh, $outfh, $iovcnt); + #$iovname = set_iovecs($cmdfh, $outfh, $iovcnt); # pwritev using 8 8K buffers at offset 384 $offset = 384 * 1024; @@ -214,7 +214,7 @@ sub do_rwcalls # Have to re-setup the iovecs $iovcnt++; - $iovname = set_iovecs($cmdfh, $outfh, $iovcnt); + #$iovname = set_iovecs($cmdfh, $outfh, $iovcnt); # Call writex using 8 8k buffers at offset 512 $cmdstr = 'CALL writex $fd $'."$iovname $NUMVECS ".'$'."$xtvname 2\n"; @@ -229,7 +229,7 @@ sub do_rwcalls # And we also need to set up the iovs again $iovcnt++; - $iovname = set_iovecs($cmdfh, $outfh, $iovcnt); + #$iovname = set_iovecs($cmdfh, $outfh, $iovcnt); $cmdstr = '$id5 = CALL iwritex $fd $'."$iovname $NUMVECS ".'$'."$xtvname 2\n"; helper::send_cmd($cmdfh, $outfh, "iwritex", $cmdstr); @@ -264,7 +264,7 @@ sub do_rwcalls # Set up the iovecs $iovcnt++; - $iovname = set_iovecs($cmdfh, $outfh, $iovcnt); + #$iovname = set_iovecs($cmdfh, $outfh, $iovcnt); # readv 64K bytes using 8 iovecs at pos 128K $cmdstr = 'CALL readv $fd $'."$iovname $NUMVECS\n"; @@ -296,7 +296,7 @@ sub do_rwcalls $iovcnt++; - $iovname = set_iovecs($cmdfh, $outfh, $iovcnt); + #$iovname = set_iovecs($cmdfh, $outfh, $iovcnt); # preadv using 8 8K buffers at offset 384 $offset = 384 * 1024; @@ -318,7 +318,7 @@ sub do_rwcalls $xtvname = set_xtvecs($cmdfh, $outfh, $xtvcnt, 512 * 1024); $iovcnt++; - $iovname = set_iovecs($cmdfh, $outfh, $iovcnt); + #$iovname = set_iovecs($cmdfh, $outfh, $iovcnt); # Call readx using 8 8k buffers at offset 512 $cmdstr = 'CALL readx $fd $'."$iovname $NUMVECS ".'$'."$xtvname 2\n"; @@ -334,7 +334,7 @@ sub do_rwcalls # And we also need to set up the iovs again $iovcnt++; - $iovname = set_iovecs($cmdfh, $outfh, $iovcnt); + #$iovname = set_iovecs($cmdfh, $outfh, $iovcnt); $cmdstr = '$id10 = CALL ireadx $fd $'."$iovname $NUMVECS ".'$'."$xtvname 2\n"; helper::send_cmd($cmdfh, $outfh, "ireadx", $cmdstr); |