Thu May 15 14:53:05 2014 UTC ()
Set a bigger timeout - this test needs > 3000s on my shark (mostly for
unpacking the test image)


(martin)
diff -r1.1 -r1.2 src/tests/fs/cd9660/t_high_ino_big_file.sh

cvs diff -r1.1 -r1.2 src/tests/fs/cd9660/t_high_ino_big_file.sh (expand / switch to unified diff)

--- src/tests/fs/cd9660/t_high_ino_big_file.sh 2014/05/10 14:15:25 1.1
+++ src/tests/fs/cd9660/t_high_ino_big_file.sh 2014/05/15 14:53:05 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: t_high_ino_big_file.sh,v 1.1 2014/05/10 14:15:25 martin Exp $ 1# $NetBSD: t_high_ino_big_file.sh,v 1.2 2014/05/15 14:53:05 martin Exp $
2# 2#
3# Copyright (c) 2014 The NetBSD Foundation, Inc. 3# Copyright (c) 2014 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# Redistribution and use in source and binary forms, with or without 6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions 7# modification, are permitted provided that the following conditions
8# are met: 8# are met:
9# 1. Redistributions of source code must retain the above copyright 9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer. 10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright 11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the 12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution. 13# documentation and/or other materials provided with the distribution.
14# 14#
@@ -62,26 +62,27 @@ @@ -62,26 +62,27 @@
62# This is the BSD license as stated July 22 1999 with 62# This is the BSD license as stated July 22 1999 with
63# <OWNER>="Thomas Schmitt (scdbackup@gmx.net)", 63# <OWNER>="Thomas Schmitt (scdbackup@gmx.net)",
64# <ORGANIZATION>="Thomas Schmitt" and <YEAR>="1999" 64# <ORGANIZATION>="Thomas Schmitt" and <YEAR>="1999"
65# an Open Source license approved by opensource.org 65# an Open Source license approved by opensource.org
66# 66#
67 67
68mntpnt="" 68mntpnt=""
69 69
70atf_test_case pr_kern_48787 cleanup 70atf_test_case pr_kern_48787 cleanup
71pr_kern_48787_head() { 71pr_kern_48787_head() {
72 atf_set "descr" "Verifies 32bit overflow isssues from PR kern/48787 are fixed" 72 atf_set "descr" "Verifies 32bit overflow isssues from PR kern/48787 are fixed"
73 atf_set "require.user" "root" 73 atf_set "require.user" "root"
74 atf_set "require.progs" "rump_cd9660 bunzip2 stat" 74 atf_set "require.progs" "rump_cd9660 bunzip2 stat"
 75 atf_set "timeout" 6000
75} 76}
76 77
77pr_kern_48787_body() { 78pr_kern_48787_body() {
78 avail=$( df -P . | awk '{if (NR==2) print $4}' ) 79 avail=$( df -P . | awk '{if (NR==2) print $4}' )
79 if [ $avail -lt 4500000 ]; then 80 if [ $avail -lt 4500000 ]; then
80 atf_skip "not enough free disk space, have ${avail}, need ~ 4500000 bytes" 81 atf_skip "not enough free disk space, have ${avail}, need ~ 4500000 bytes"
81 fi 82 fi
82 bunzip2 < $(atf_get_srcdir)/pr_48787.image.bz2 > pr_48787.image 83 bunzip2 < $(atf_get_srcdir)/pr_48787.image.bz2 > pr_48787.image
83 mntpnt=$(pwd)/mnt 84 mntpnt=$(pwd)/mnt
84 mkdir ${mntpnt} 85 mkdir ${mntpnt}
85 rump_cd9660 -o norrip ./pr_48787.image ${mntpnt} 86 rump_cd9660 -o norrip ./pr_48787.image ${mntpnt}
86 if [ ! -r ${mntpnt}/small_file ]; then 87 if [ ! -r ${mntpnt}/small_file ]; then
87 atf_fail "${mntpnt}/small_file does not exist" 88 atf_fail "${mntpnt}/small_file does not exist"