Skip Menu |

This queue is for tickets about the Filesys-DiskSpace CPAN distribution.

Report information
The Basics
Id: 1866
Status: new
Priority: 0/
Queue: Filesys-DiskSpace

People
Owner: Nobody in particular
Requestors: emorisse [...] clearmetrix.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: test fails on linux if no ext2 partitions exist
One of the test scripts for installing Filesys::DiskSpace (t/linux-ext2.t) fails, rather than skips, if no ext2 partitions are found. This is fixed with the short patch attached. Also, there should be a similar test for ext3 partitions which can be done by copying linux-ext2.t to linux-ext3.t and doing a s/ext2/ext3/g over the file. Thanks CPAN, you provide a great service! esm ************************ Not sure any of the environment info is applicable, but just in case: $ cat /etc/mtab /dev/hda2 / ext3 rw 0 0 none /proc proc rw 0 0 usbdevfs /proc/bus/usb usbdevfs rw 0 0 /dev/hda1 /boot ext3 rw 0 0 none /dev/pts devpts rw,gid=5,mode=620 0 0 none /dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 $ uname -a Linux whoathere 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown $ perl -V Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=linux, osvers=2.4.17-0.13smp, archname=i386-linux uname='linux daffy.perf.redhat.com 2.4.17-0.13smp #1 smp fri feb 1 10:30:48 est 2002 i686 unknown ' config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Uusethreads -Uuseithreads -Uuselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Dlocincpth=' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include', optimize='-O2 -march=i386 -mcpu=i686', cppflags='-fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-98)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -ldl -lm -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
--- linux-ext2.t.ori Tue Dec 10 11:18:53 2002 +++ linux-ext2.t Tue Dec 10 11:29:52 2002 @@ -23,6 +23,10 @@ push @$dirs, $tab[1] if $tab[2] eq 'ext2'; } close MOUNT; +unless (defined @$dirs) { + print "1..0\n"; + exit; +} open (DF, "$bindf -k @$dirs |") || die "Error: $!\n"; while (defined (my $d = <DF>)) { my @tab = split /\s+/, $d;