summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJacek Kuczera <jacek.kuczera@gmail.com>2019-10-06 19:57:32 (GMT)
committerJacek Kuczera <jacek.kuczera@gmail.com>2019-10-06 19:57:32 (GMT)
commit5f22daa0bd88e39071860b54678f8c516badf1f1 (patch)
tree584f18f907f20e8a4e64ec3c66e6af22e75eeadf /test
parent16a9225e26489ab611af03f022eafe6d264bfcc4 (diff)
downloadSCons-5f22daa0bd88e39071860b54678f8c516badf1f1.zip
SCons-5f22daa0bd88e39071860b54678f8c516badf1f1.tar.gz
SCons-5f22daa0bd88e39071860b54678f8c516badf1f1.tar.bz2
test whether CheckFunc properly detects memmove
Diffstat (limited to 'test')
-rw-r--r--test/Configure/config-h.py27
1 files changed, 16 insertions, 11 deletions
diff --git a/test/Configure/config-h.py b/test/Configure/config-h.py
index a5c1998..405f259 100644
--- a/test/Configure/config-h.py
+++ b/test/Configure/config-h.py
@@ -46,25 +46,27 @@ env.AppendENVPath('PATH', os.environ['PATH'])
conf = Configure(env, config_h = 'config.h')
r1 = conf.CheckFunc('printf')
r2 = conf.CheckFunc('noFunctionCall')
-r3 = conf.CheckType('int')
-r4 = conf.CheckType('noType')
-r5 = conf.CheckCHeader('stdio.h', '<>')
-r6 = conf.CheckCHeader('hopefullynoc-header.h')
-r7 = conf.CheckCXXHeader('vector', '<>')
-r8 = conf.CheckCXXHeader('hopefullynocxx-header.h')
+r3 = conf.CheckFunc('memmove')
+r4 = conf.CheckType('int')
+r5 = conf.CheckType('noType')
+r6 = conf.CheckCHeader('stdio.h', '<>')
+r7 = conf.CheckCHeader('hopefullynoc-header.h')
+r8 = conf.CheckCXXHeader('vector', '<>')
+r9 = conf.CheckCXXHeader('hopefullynocxx-header.h')
env = conf.Finish()
conf = Configure(env, config_h = 'config.h')
-r9 = conf.CheckLib('%(lib)s', 'sin')
-r10 = conf.CheckLib('hopefullynolib', 'sin')
-r11 = conf.CheckLibWithHeader('%(lib)s', 'math.h', 'c')
-r12 = conf.CheckLibWithHeader('%(lib)s', 'hopefullynoheader2.h', 'c')
-r13 = conf.CheckLibWithHeader('hopefullynolib2', 'math.h', 'c')
+r10 = conf.CheckLib('%(lib)s', 'sin')
+r11 = conf.CheckLib('hopefullynolib', 'sin')
+r12 = conf.CheckLibWithHeader('%(lib)s', 'math.h', 'c')
+r13 = conf.CheckLibWithHeader('%(lib)s', 'hopefullynoheader2.h', 'c')
+r14 = conf.CheckLibWithHeader('hopefullynolib2', 'math.h', 'c')
env = conf.Finish()
""" % locals())
expected_read_str = """\
Checking for C function printf()... yes
Checking for C function noFunctionCall()... no
+Checking for C function memmove()... yes
Checking for C type int... yes
Checking for C type noType... no
Checking for C header file stdio.h... yes
@@ -96,6 +98,9 @@ expected_config_h = ("""\
/* Define to 1 if the system has the function `noFunctionCall'. */
/* #undef HAVE_NOFUNCTIONCALL */
+/* Define to 1 if the system has the function `memmove'. */
+#define HAVE_MEMMOVE 1
+
/* Define to 1 if the system has the type `int'. */
#define HAVE_INT 1