Commit 792c081a

792c081aa546Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 6 files · +3 added · ~3 modified

Description

Merge pull request #389 from mame/fix/argv-gc-mark

fix: mark sp_argv strings during GC

Details

Commit
792c081aa546
Parent
d1eb0011c397
Merge parent
649ce5718fcc

MakefilemodifiedView file

@@ -277,6 +277,8 @@
277277 bin=$$tmpdir/test_bin$(EXE); \
278278 exp=$$tmpdir/expected; \
279279 act=$$tmpdir/actual; \
280+ args=""; \
281+ if [ -f "$<.args" ]; then args=$$(cat "$<.args"); fi; \
280282 rm -f "[email protected]"; \
281283 ./spinel_parse$(EXE) "$<" "$$ast" 2>/dev/null && \
282284 ./spinel_codegen$(EXE) "$$ast" "$$cfile" 2>/dev/null && \
@@ -286,14 +288,14 @@
286288 if [ -f "$<.expected" ]; then \
287289 LC_ALL=C sed 's/\r$$//' "$<.expected" >"$$exp.n"; \
288290 else \
289- $(TIMEOUT10) $(REF_RUBY) "$<" >"$$exp" 2>/dev/null; \
291+ $(TIMEOUT10) $(REF_RUBY) "$<" $$args >"$$exp" 2>/dev/null; \
290292 ruby_rc=$$?; \
291293 if [ $$ruby_rc -ne 0 ] && [ "$(REF_RUBY)" != "ruby" ]; then \
292- $(TIMEOUT10) ruby "$<" >"$$exp" 2>/dev/null; \
294+ $(TIMEOUT10) ruby "$<" $$args >"$$exp" 2>/dev/null; \
293295 fi; \
294296 LC_ALL=C sed 's/\r$$//' "$$exp" >"$$exp.n"; \
295297 fi; \
296- $(TIMEOUT10) "$$bin" >"$$act" 2>/dev/null; \
298+ $(TIMEOUT10) "$$bin" $$args >"$$act" 2>/dev/null; \
297299 LC_ALL=C sed 's/\r$$//' "$$act" >"$$act.n"; \
298300 if cmp -s "$$exp.n" "$$act.n"; then \
299301 echo PASS > "$@"; \