diff mbox series

[committed] libphobos: Fix KERNEL_VERSION condition in libphobos testsuite

Message ID 20200429084842.25076-1-ibuclaw@gdcproject.org
State New
Headers show
Series [committed] libphobos: Fix KERNEL_VERSION condition in libphobos testsuite | expand

Commit Message

Iain Buclaw April 29, 2020, 8:48 a.m. UTC
Hi,

This patch fixes an effective target check in the libphobos testsuite.
A typo in the macro call meant that the #error always triggered.

Regression tested on x86_64-linux-gnu with multilib configurations
{-m64,-m32,-mx32}, committed to mainline.

Regards
Iain.

---
libphobos/ChangeLog:

	* testsuite/lib/libphobos.exp (check_effective_target_linux_pre_2639):
	Fix KERNEL_VERSION condition.
---
 libphobos/testsuite/lib/libphobos.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libphobos/testsuite/lib/libphobos.exp b/libphobos/testsuite/lib/libphobos.exp
index 7e6e53e9d5c..2e9da95ac1c 100644
--- a/libphobos/testsuite/lib/libphobos.exp
+++ b/libphobos/testsuite/lib/libphobos.exp
@@ -285,7 +285,7 @@  proc check_effective_target_linux_pre_2639 { } {
 
     if { [check_no_compiler_messages linux_pre_2639 assembly {
 	#include <linux/version.h>
-	#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < KERNEL_VERSION(2.6.39)
+	#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39)
 	#error Yes, it is.
 	#endif
     }] } {