summary refs log tree commit homepage
diff options
context:
space:
mode:
-rwxr-xr-xt/t0012-reload-empty-config.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t0012-reload-empty-config.sh b/t/t0012-reload-empty-config.sh
index 81e1fb3..47d18ce 100755
--- a/t/t0012-reload-empty-config.sh
+++ b/t/t0012-reload-empty-config.sh
@@ -18,7 +18,8 @@ after_fork { |s,w| }
     next if key =~ %r{\Astd(?:err|out)_path\z}
     key = key.to_sym
     def_value = defaults[key]
-    srv_value = srv.__send__(key)
+    srv_value = srv.respond_to?(key) ? srv.__send__(key)
+                                     : srv.instance_variable_get("@#{key}")
     fp << "#{key}|#{srv_value}|#{def_value}\\n"
   end
 }