Blame SOURCES/test-check-for-package_searchers-only-in-compat5_2.patch

006bc1
From 2d4d73df7f04c0e3cb6ec2983d23e418342f17d9 Mon Sep 17 00:00:00 2001
006bc1
From: Siddhesh Poyarekar <siddhesh@sourceware.org>
006bc1
Date: Mon, 17 Jun 2019 13:50:57 +0530
006bc1
Subject: [PATCH] test: Check for package.searchers only in compat5.2
006bc1
006bc1
LuaJIT version check for lua will return true for +lua<5.2 since it
006bc1
does not fully implement 5.2.  Move the (not package.searchers) check
006bc1
to +compat5.2 instead of the version check since it is implemented by
006bc1
compat5.2.
006bc1
---
006bc1
 test/lib/contents.lua | 5 ++++-
006bc1
 1 file changed, 4 insertions(+), 1 deletion(-)
006bc1
006bc1
diff --git a/test/lib/contents.lua b/test/lib/contents.lua
006bc1
index 2baacd5c..09866f6f 100644
006bc1
--- a/test/lib/contents.lua
006bc1
+++ b/test/lib/contents.lua
006bc1
@@ -121,10 +121,13 @@ end
006bc1
 
006bc1
 do --- pre-5.2 package +lua<5.2
006bc1
   assert(package.loaders)
006bc1
-  assert(not package.searchers)
006bc1
   assert(package.seeall)
006bc1
 end
006bc1
 
006bc1
+do --- 5.2 compat package +compat5.2
006bc1
+  assert(package.searchers)
006bc1
+end
006bc1
+
006bc1
 do --- 5.2 package +lua>=5.2
006bc1
   assert(not package.loaders)
006bc1
   assert(package.searchers)
006bc1
-- 
006bc1
2.21.0
006bc1