Description: adjust path in test when run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-10-04

--- a/t/vocabularies.t
+++ b/t/vocabularies.t
@@ -353,12 +353,14 @@
     return;
   }
 
+  use Config;
+  my $dir = $ENV{AUTOPKGTEST_TMP} ? $Config{vendorlib} : 'lib';
   my @classes =
     grep load_module($_)->does('JSON::Schema::Modern::Vocabulary'),
     map 'JSON::Schema::Modern::Vocabulary::'.$_,
     map $_->basename =~ s/\.pm$//r,
     grep /\.pm$/,
-    Path::Tiny::path('lib/JSON/Schema/Modern/Vocabulary/')->children;
+    Path::Tiny::path("$dir/JSON/Schema/Modern/Vocabulary/")->children;
 
   my $table = {
     map {
