summaryrefslogtreecommitdiff
path: root/regress/sys/kern/extent/extest.awk
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/kern/extent/extest.awk')
-rw-r--r--regress/sys/kern/extent/extest.awk11
1 files changed, 8 insertions, 3 deletions
diff --git a/regress/sys/kern/extent/extest.awk b/regress/sys/kern/extent/extest.awk
index 5c875d44133..e803e93267d 100644
--- a/regress/sys/kern/extent/extest.awk
+++ b/regress/sys/kern/extent/extest.awk
@@ -1,4 +1,4 @@
-# $OpenBSD: extest.awk,v 1.1 2005/04/21 17:45:54 miod Exp $
+# $OpenBSD: extest.awk,v 1.2 2009/04/10 20:57:04 kettenis Exp $
# $NetBSD: extest.awk,v 1.6 2002/02/21 03:59:25 mrg Exp $
BEGIN {
@@ -48,8 +48,13 @@ $1 == "boundary" {
}
$1 == "alloc_region" {
- printf("error = extent_alloc_region(ex, %s, %s, 0);\n",
- $2, $3)
+ if ($4 == "") {
+ flags = "0";
+ } else {
+ flags = $4;
+ }
+ printf("error = extent_alloc_region(ex, %s, %s, %s);\n",
+ $2, $3, flags)
printf("if (error)\n\tprintf(\"error: %%s\\n\", strerror(error));\n")
}