[Parted-edge] Re: Initial snapshot of C++ bindings.

Otavio Salvador otavio at debian.org
Fri Mar 16 21:54:19 CET 2007


"Debarshi 'Rishi' Ray" <debarshi.ray at gmail.com> writes:

> I see that the unit tests in libpartedpp fail completely. This is
> partly because of the fact that the tests are written in such a manner
> so as to directly make use of the system's block devices. eg.,
> /dev/hda. I do not like this way of doing things, because:
> a. 'make check' needs root privileges to execute the tests.
> b. In case there is a mistake in the code, the entire block device
> might get badly affected.

Indeed. Most of functions can be test without a phisical access.

> Therefore I am curious to know the original reason for using /dev/hda
> instead of a custom-made loop device. I personally like the Otavio has
> written the test in Parted, where a loop device is created during
> running the tests and the operations are performed on it, instead of
> any of the actual block devices in the system.

Much of code should be test on libparted too so you can start to port
tests ;-) hehe

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the Parted-edge mailing list