aboutsummaryrefslogtreecommitdiffstats
path: root/test/functab4.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/functab4.awk')
-rw-r--r--test/functab4.awk9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/functab4.awk b/test/functab4.awk
index 196fcc6d..3be971f3 100644
--- a/test/functab4.awk
+++ b/test/functab4.awk
@@ -9,11 +9,14 @@ BEGIN {
f = FUNCTAB["foo"]
@f()
- ret1 = stat(".", data1)
- print "ret1 =", ret1
+ # Do the two stats one after the other, and use ".." instead
+ # of "." to avoid race conditions seen using ".".
+ ret1 = stat("..", data1)
f = "stat"
- ret2 = @f(".", data2)
+ ret2 = @f("..", data2)
+
+ print "ret1 =", ret1
print "ret2 =", ret2
problem = 0