-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test/actionscript/ActionScriptTest.c fails on OpenBSD 4.9 #3
Comments
[sigh] trying the patch again: diff -u:
|
one more try.
|
What is it, if not a space? A tab ? A newline ? Could it be simplified by using strstr rather than strchr ? |
On 12/06/2011 03:40 PM, strk wrote:
They're tabs. The macro is like this: AS_TESTS = etc., and BSD make is converting the leading tabs to spaces, but not I know the for(;;) is ugly, and I considered strtok() for a moment, but As for strstr()? Since it works on strings, wouldn't it be error The makefile could be fixed, but still, it's less general, and
|
(Github stripped tabs from the macro sample, but they were there.) |
Sorry, I meant strspn/strcspn rather than strstr |
Please try the "bsd" branch in the repository, it contains a version using strcspn |
On 12/07/2011 02:40 AM, strk wrote:
OK, nice! Much prettier.
|
On 12/07/2011 02:49 AM, strk wrote:
Got it, it's built. In test/Font listswf is dumping core.
gerec=0x8acaa070, glyphbits=0, advancebits=9) at parser.c:245
|
On Wed, Dec 07, 2011 at 06:26:19AM -0800, ehy wrote:
Could you please file another issue for that ? --strk; ,------o-. |
The fix for ActionScriptTest was pushed as d2e12f8 |
On 12/07/2011 09:27 AM, strk wrote:
Done.
|
Apparently BSD and GNU make treat macros differently.
ActionScriptTest.c loops over test cases from a string that
originates in a Makefile macro; and expects ' ' (space)
separators. Using isspace() lets the test run as expected.
(This is likely the same for any *BSD.)
diff -u:
--- test/actionscript/ActionScriptTest.c-orig 2011-10-26 02:33:18.000000000 -0400
+++ test/actionscript/ActionScriptTest.c 2011-12-06 10:28:06.000000000 -0500
@@ -39,6 +39,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <limits.h>
+#include <ctype.h>
#include <makeswf.h>
static SWFMovie
@@ -82,18 +83,26 @@
const char *from, *to, *end;
char *ptr;
int version;
from = all_tests;
do
{
The text was updated successfully, but these errors were encountered: