public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfstests: only run 197 on 32-bit machines
@ 2009-01-15  2:08 Eric Sandeen
  2009-01-15  5:14 ` Felix Blyakher
  2009-01-18 17:17 ` Christoph Hellwig
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Sandeen @ 2009-01-15  2:08 UTC (permalink / raw)
  To: xfs-oss; +Cc: Christoph Hellwig

Don't run test 197 on 64-bit machines

If it always passes on 64 bits, this gives a false
sense of security.  Make it obvious.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
--

diff --git a/197 b/197
index 4c81941..f77bfa2 100644
--- a/197
+++ b/197
@@ -37,6 +37,10 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _supported_fs xfs
 _supported_os Linux
 
+bitsperlong=`src/feature -w`
+if [ "$bitsperlong" -ne 32 ]; then
+	_notrun "This test is only valid on 32 bit machines"
+fi
 
 mkdir $TEST_DIR/ttt
 for n in {1..168}; do


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] xfstests: only run 197 on 32-bit machines
  2009-01-15  2:08 [PATCH] xfstests: only run 197 on 32-bit machines Eric Sandeen
@ 2009-01-15  5:14 ` Felix Blyakher
  2009-01-18 17:17 ` Christoph Hellwig
  1 sibling, 0 replies; 4+ messages in thread
From: Felix Blyakher @ 2009-01-15  5:14 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: Christoph Hellwig, xfs-oss


On Jan 14, 2009, at 8:08 PM, Eric Sandeen wrote:

> Don't run test 197 on 64-bit machines
>
> If it always passes on 64 bits, this gives a false
> sense of security.  Make it obvious.

Sounds reasonable.

>
> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Signed-off-by: Felix Blyakher <felixb@sgi.com>

> --
>
> diff --git a/197 b/197
> index 4c81941..f77bfa2 100644
> --- a/197
> +++ b/197
> @@ -37,6 +37,10 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
>  _supported_fs xfs
>  _supported_os Linux
>
> +bitsperlong=`src/feature -w`
> +if [ "$bitsperlong" -ne 32 ]; then
> +	_notrun "This test is only valid on 32 bit machines"
> +fi
>
>  mkdir $TEST_DIR/ttt
>  for n in {1..168}; do
>
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] xfstests: only run 197 on 32-bit machines
  2009-01-15  2:08 [PATCH] xfstests: only run 197 on 32-bit machines Eric Sandeen
  2009-01-15  5:14 ` Felix Blyakher
@ 2009-01-18 17:17 ` Christoph Hellwig
  2009-01-18 19:27   ` Eric Sandeen
  1 sibling, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2009-01-18 17:17 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: Christoph Hellwig, xfs-oss

On Wed, Jan 14, 2009 at 08:08:04PM -0600, Eric Sandeen wrote:
> Don't run test 197 on 64-bit machines
> 
> If it always passes on 64 bits, this gives a false
> sense of security.  Make it obvious.

I don't think it matters, but your patch looks correct and if it helps
you in some way..


Reviewed-by: Christoph Hellwig <hch@lst.de>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] xfstests: only run 197 on 32-bit machines
  2009-01-18 17:17 ` Christoph Hellwig
@ 2009-01-18 19:27   ` Eric Sandeen
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2009-01-18 19:27 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: xfs-oss

Christoph Hellwig wrote:
> On Wed, Jan 14, 2009 at 08:08:04PM -0600, Eric Sandeen wrote:
>> Don't run test 197 on 64-bit machines
>>
>> If it always passes on 64 bits, this gives a false
>> sense of security.  Make it obvious.
> 
> I don't think it matters, but your patch looks correct and if it helps
> you in some way..
> 
> 
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> 

thanks

I only wanted to put it in because I was looking at fedora, wanted to
test it against this bug, ran it, it passed, and *then* I remembered
that it'd only fail on 32-bit, and my test (on that hardware) wasn't
really valid.

-Eric

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-18 19:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-15  2:08 [PATCH] xfstests: only run 197 on 32-bit machines Eric Sandeen
2009-01-15  5:14 ` Felix Blyakher
2009-01-18 17:17 ` Christoph Hellwig
2009-01-18 19:27   ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox