[glib] gtester: small Windows fix



commit 494db61c1946f0b06cc2d68a1194e8812871540e
Author: Ryan Lortie <desrt desrt ca>
Date:   Tue Jul 26 13:49:20 2011 +0200

    gtester: small Windows fix
    
    This code was unconditionally present in the gtester Makefile:
    
    test-nonrecursive: ${TEST_PROGS}
    
    On Windows, our testcases are compiled with a .exe suffix.  That means
    that if we had 'foo' in TEST_PROGS, running "make check" would depend on
    'foo' (not foo.exe) being compiled.
    
    We could bring the EXEEXT in here to fix that up, but gtester doesn't
    work on Windows at all, so better to just disable it in that case.

 Makefile.decl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.decl b/Makefile.decl
index 163fd8b..f4ba2a2 100644
--- a/Makefile.decl
+++ b/Makefile.decl
@@ -17,12 +17,12 @@ if OS_UNIX
 	    test "$$subdir" = "." -o "$$subdir" = "po" || \
 	    ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
 	  done
-endif
 
 # test-nonrecursive: run tests only in cwd
 test-nonrecursive: ${TEST_PROGS}
-if OS_UNIX
 	@test -z "${TEST_PROGS}" || MALLOC_CHECK_=2 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256)) ${GTESTER} --verbose ${TEST_PROGS}
+else
+test-nonrecursive:
 endif
 
 # test-report: run tests in subdirs and generate report



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]