ravikumar10 / genyris

Automatically exported from code.google.com/p/genyris
Other
0 stars 0 forks source link

Mac fails in test-process.g #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On Mac OS/X
> sys:self-test

What do you see?
==========================================================================
Total # Test Files: 64
Total # gunit Tests: 21
Total # of failed test files: 1
    :'/Applications/genyris/test/acceptance/test-process.g'
Total # gunit tests Failed 0
Total # of JUnit tests: 219
Total # of JUnit errors: 0
*** Error - ("assert failed on expression: " (and (equal? 0 (junit-summary 
.left)) (equal? 0 |http://www.genyris.org/lib/gunit#total-test-failed-counter|) 
(equal? nil |http://www.genyris.org/lib/gunit#failed-files|)))
~ '<LazyProcedure: cond>'
~ '<LazyProcedure: cond>'

AND:

> include 'test/acceptance/test-process.g'
: 
.wait .notifyAll .getOutput .hashCode .getInputStream .toString .notify 
.destroy .equals-java_lang_Object .getError .getClass .getOutputStream 
.classname .java-classname .subclasses .exitValue .getErrorStream .wait-long 
.new .superclasses .wait-long-int .waitFor .self .vars .classes
*** Error - 'Unknown operating system \'Mac OS X\''

And after adding Mac OS X we then get:

> include 'test/acceptance/test-process.g'
: 
.wait .notifyAll .getOutput .hashCode .getInputStream .toString .notify 
.destroy .equals-java_lang_Object .getError .getClass .getOutputStream 
.classname .java-classname .subclasses .exitValue .getErrorStream .wait-long 
.new .superclasses .wait-long-int .waitFor .self .vars .classes
.self .vars .classes .http://www.genyris.org/lang/java#class
<class java_lang_Process (Java)> <class JavaWrapper (Builtin)>
*** Error - ("assert failed on expression: " ('Testing Testing one two three') 
(reader (.getline)) "values:" 'Testing Testing one two three' EOF)

What is the expected output?

no error

Original issue reported on code.google.com by birchb1...@gmail.com on 13 Apr 2013 at 11:26

GoogleCodeExporter commented 9 years ago
Is this a Java 64-bit issue? Or an operating system one...

Original comment by birchb1...@gmail.com on 13 Apr 2013 at 11:33

GoogleCodeExporter commented 9 years ago
See #49

Original comment by birchb1...@gmail.com on 13 Apr 2013 at 11:37

GoogleCodeExporter commented 9 years ago
Loo at this: 

> os!exec '/bin/date'
: 
(('Sat 13 Apr 2013 21:44:25 EST')) # Pair 
> os!exec '/bin/bash' 'ls'
: 
*** Error - (nil '/bin/ls: /bin/ls: cannot execute binary file')

# something's up with bash on ox/x

Original comment by birchb1...@gmail.com on 13 Apr 2013 at 11:46

GoogleCodeExporter commented 9 years ago
# yes bash on OX/X needs a -c option :-(

see attached fixed file.

Original comment by birchb1...@gmail.com on 13 Apr 2013 at 11:50

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by birchb1...@gmail.com on 13 Apr 2013 at 11:55

GoogleCodeExporter commented 9 years ago
Fixed in 273c23790fc76a248007d3cdc00965fae56ec43f.
Needs repackage and verify.

Original comment by birchb1...@gmail.com on 23 Apr 2013 at 3:01