@@ -65,6 +65,7 @@ ECHO = echo
65
65
TESTNDIR = test ! -d
66
66
TESTFILE = test -f
67
67
AND = &&
68
+ COUNT_UNIQ = uniq -c
68
69
69
70
# If not.
70
71
#RM = erase
@@ -140,7 +141,7 @@ LFLAGS = $(ARCH)
140
141
# non-compliant, but applications that make assumptions that POSIX
141
142
# does not garrantee may fail or misbehave under some settings.
142
143
#
143
- # PTW32_THREAD_ID_REUSE_INCREMENT
144
+ # __PTW32_THREAD_ID_REUSE_INCREMENT
144
145
# Purpose:
145
146
# POSIX says that applications should assume that thread IDs can be
146
147
# recycled. However, Solaris and some other systems use a [very large]
220
221
@ $(MAKE) clean GC-static
221
222
@ $(MAKE) clean GCE-static
222
223
223
- TEST_ENV = PTW32_FLAGS ="$(PTW32_FLAGS) -DNO_ERROR_DIALOGS" DLL_VER=$(DLL_VER) ARCH="$(ARCH)"
224
+ TEST_ENV = __PTW32_FLAGS ="$(PTW32_FLAGS) -DNO_ERROR_DIALOGS" DLL_VER=$(DLL_VER) ARCH="$(ARCH)"
224
225
225
226
all-tests:
226
227
$(MAKE) realclean GC-small-static
@@ -236,11 +237,11 @@ all-tests:
236
237
cd tests && $(MAKE) clean GC-static $(TEST_ENV) && $(MAKE) clean GCX-static $(TEST_ENV)
237
238
$(MAKE) realclean GCE-static
238
239
cd tests && $(MAKE) clean GCE-static $(TEST_ENV)
239
- @ - $(GREP) FAILED *.log
240
- $(MAKE) realclean
240
+ @ $(GREP) FAILED *.log || $(GREP) Passed *.log | $(COUNT_UNIQ)
241
+ $(MAKE) clean
241
242
242
243
all-tests-cflags:
243
- $(MAKE) all-tests PTW32_FLAGS ="-Wall -Wextra"
244
+ $(MAKE) all-tests __PTW32_FLAGS ="-Wall -Wextra"
244
245
@ $(ECHO) "$@ completed."
245
246
246
247
GC:
@@ -376,6 +377,7 @@ realclean: clean
376
377
-$(RM) pthread*.dll
377
378
-$(RM) *_stamp
378
379
-$(RM) make.log.txt
380
+ -$(RM) *.log
379
381
-cd tests && $(MAKE) realclean
380
382
381
383
var_check_list =
0 commit comments