shithub: mc

Download patch

ref: f1af8834d4fac147c4fd27591d8a340eac000256
parent: b6e670357b498734e97f5c316782cba6b04f0a33
author: Ori Bernstein <[email protected]>
date: Sun May 3 06:58:57 EDT 2015

Run tests from mbld.

--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
 include config.mk
 
 check: all
-	$(MAKE) -C test check #&& \
+	./mbldwrap.sh test:runtest
 	# BORKED. ./mbldwrap.sh test
 
 bench: all
--- a/bld.proj
+++ b/bld.proj
@@ -3,5 +3,6 @@
 	libstd
 	libbio
 	libregex
+	test
 ;;
 
--- a/libstd/optparse.myr
+++ b/libstd/optparse.myr
@@ -42,10 +42,10 @@
 	optargs	: byte[:][:]
 
 	/* state */
-	optdone	: bool	/* if we've seen '--', everything's an arg */
-	finished	: bool	/* if we've processed all the optargs */
 	argidx	: size
 	curarg	: byte[:]
+	optdone	: bool	/* if we've seen '--', everything's an arg */
+	finished	: bool	/* if we've processed all the optargs */
 ;;