Fix test after the changes to skip 0 and 1 node identifiers.

This commit is contained in:
jmmv 2005-09-23 14:11:15 +00:00
parent 8d09f0278b
commit 5d6f54160e

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: t_id_gen,v 1.1 2005/09/10 19:20:51 jmmv Exp $
# $NetBSD: t_id_gen,v 1.2 2005/09/23 14:11:15 jmmv Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@ -47,20 +47,20 @@ test_run() {
test_name "Creation of directory"
mkdir a || die
test_name "Node ID should be 1"
test_name "Node ID should be 3"
eval $(stat -s a | sed -e 's|st_|ost_|g') || die
ofhsum=$(${Src_Dir}/h_tools getfh a | md5) || die
[ ${ost_ino} -eq 1 ] || die
[ ${ost_ino} -eq 3 ] || die
test_name "Deletion of directory"
rmdir a || die
test_name "Creation of directory (reuse node)"
mkdir b || die
test_name "Node ID should be 1"
test_name "Node ID should be 3"
eval $(stat -s b) || die
fhsum=$(${Src_Dir}/h_tools getfh b | md5) || die
[ ${st_ino} -eq 1 ] || die
[ ${st_ino} -eq 3 ] || die
test_name "File handle is different (thanks to generation)"
[ ${ofhsum} != ${fhsum} ] || die